Mercurial > hg > orthanc-stone
comparison Platforms/Generic/Oracle.h @ 271:46c5296d867e am-2
OracleWebService and BasicSdlApplicationContext using the same global mutex
author | am@osimis.io |
---|---|
date | Thu, 23 Aug 2018 17:12:54 +0200 |
parents | e2fe9352f240 |
children | b70e9be013e4 |
comparison
equal
deleted
inserted
replaced
270:2d64f4d39610 | 271:46c5296d867e |
---|---|
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "IOracleCommand.h" | 24 #include "IOracleCommand.h" |
25 | 25 |
26 #include <boost/shared_ptr.hpp> | 26 #include <boost/shared_ptr.hpp> |
27 #include <boost/thread/mutex.hpp> | |
28 | 27 |
29 namespace OrthancStone | 28 namespace OrthancStone |
30 { | 29 { |
31 class Oracle : public boost::noncopyable | 30 class Oracle : public boost::noncopyable |
32 { | 31 { |
34 class PImpl; | 33 class PImpl; |
35 | 34 |
36 boost::shared_ptr<PImpl> pimpl_; | 35 boost::shared_ptr<PImpl> pimpl_; |
37 | 36 |
38 public: | 37 public: |
39 Oracle(boost::mutex& globalMutex, | |
40 unsigned int threadCount); | |
41 | |
42 Oracle(unsigned int threadCount); | 38 Oracle(unsigned int threadCount); |
43 | 39 |
44 void Start(); | 40 void Start(); |
45 | 41 |
46 void Submit(IOracleCommand* command); | 42 void Submit(IOracleCommand* command); |