]> AND Public Git Repository - simgrid.git/blobdiff - src/xbt/OsSemaphore.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix hash update.
[simgrid.git] / src / xbt / OsSemaphore.hpp
index 64598509d8e9c27ef51572489bc1590bc4357a54..f6e70839466e5eac768530791dcb7943bc9bed53 100644 (file)
@@ -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<std::mutex> lock(mutex_);
-    condition_.wait(lock, [&]() -> bool { return capa_ > 0; });
+    condition_.wait(lock, [this]() { return capa_ > 0; });
     --capa_;
   }