Mercurial > hg > orthanc-stone
comparison Framework/Messages/LockingEmitter.h @ 1071:6dd90b8d1589
Fixes related to refactorings in viewports.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 15 Oct 2019 14:30:19 +0200 |
parents | 6d15261f9c99 |
children | f72d1ab42932 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
1062:2d6237221ff1 | 1071:6dd90b8d1589 |
---|---|
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 **/ | 19 **/ |
20 | 20 |
21 #pragma once | 21 #pragma once |
22 | 22 |
23 #include <Core/Enumerations.h> | |
24 #include <Core/OrthancException.h> | |
25 | |
23 #include "IMessageEmitter.h" | 26 #include "IMessageEmitter.h" |
24 #include "IObservable.h" | 27 #include "IObservable.h" |
25 | 28 |
26 #include <boost/thread.hpp> | 29 #include <boost/thread.hpp> |
27 | 30 |
37 * application-wide mutex. | 40 * application-wide mutex. |
38 */ | 41 */ |
39 class LockingEmitter : public IMessageEmitter | 42 class LockingEmitter : public IMessageEmitter |
40 { | 43 { |
41 private: | 44 private: |
42 boost::shared_mutex mutex_; | 45 boost::shared_mutex mutex_; |
43 MessageBroker broker_; | 46 MessageBroker broker_; |
44 IObservable oracleObservable_; | 47 IObservable oracleObservable_; |
45 | 48 |
46 public: | 49 public: |
47 LockingEmitter() : | 50 LockingEmitter() : |