X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ef40de9569d6b74e953808d9f9eb3095aa7c38ab..745a5ade14924e2b2684a280e4cb75a9c1d3bee7:/src/xbt/OsSemaphore.hpp diff --git a/src/xbt/OsSemaphore.hpp b/src/xbt/OsSemaphore.hpp index 64598509d8..f6e7083946 100644 --- a/src/xbt/OsSemaphore.hpp +++ b/src/xbt/OsSemaphore.hpp @@ -10,12 +10,12 @@ namespace simgrid { namespace xbt { class XBT_PUBLIC OsSemaphore { public: - inline OsSemaphore(unsigned int uiCount) : capa_(uiCount) {} + explicit inline OsSemaphore(unsigned int capa) : capa_(capa) {} inline void acquire() { std::unique_lock lock(mutex_); - condition_.wait(lock, [&]() -> bool { return capa_ > 0; }); + condition_.wait(lock, [this]() { return capa_ > 0; }); --capa_; }