Mercurial > hg > orthanc
comparison OrthancFramework/Sources/MultiThreading/Semaphore.h @ 4104:d5c09b5f882f
publishing Orthanc::Semaphore in shared library
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jul 2020 11:45:39 +0200 |
parents | 408ac60c3cf8 |
children | bf7b9edf6b81 |
comparison
equal
deleted
inserted
replaced
4103:c5efe8897da8 | 4104:d5c09b5f882f |
---|---|
31 **/ | 31 **/ |
32 | 32 |
33 | 33 |
34 #pragma once | 34 #pragma once |
35 | 35 |
36 #include "../OrthancFramework.h" | |
37 | |
36 #include <boost/noncopyable.hpp> | 38 #include <boost/noncopyable.hpp> |
37 #include <boost/thread.hpp> | 39 #include <boost/thread.hpp> |
38 | 40 |
39 namespace Orthanc | 41 namespace Orthanc |
40 { | 42 { |
41 class Semaphore : public boost::noncopyable | 43 class ORTHANC_PUBLIC Semaphore : public boost::noncopyable |
42 { | 44 { |
43 private: | 45 private: |
44 unsigned int availableResources_; | 46 unsigned int availableResources_; |
45 boost::mutex mutex_; | 47 boost::mutex mutex_; |
46 boost::condition_variable condition_; | 48 boost::condition_variable condition_; |