Mercurial > hg > orthanc
comparison Core/MultiThreading/Semaphore.h @ 2223:29689b30f9ae
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 13 Dec 2016 15:28:05 +0100 |
parents | 68510b1c2433 |
children | a3a65de1840f |
comparison
equal
deleted
inserted
replaced
2222:21713ce8717b | 2223:29689b30f9ae |
---|---|
55 { | 55 { |
56 private: | 56 private: |
57 Semaphore& that_; | 57 Semaphore& that_; |
58 | 58 |
59 public: | 59 public: |
60 Locker(Semaphore& that) : | 60 explicit Locker(Semaphore& that) : |
61 that_(that) | 61 that_(that) |
62 { | 62 { |
63 that_.Acquire(); | 63 that_.Acquire(); |
64 } | 64 } |
65 | 65 |