comparison Framework/Oracle/ThreadedOracle.h @ 1109:79b1b541fe15 broker

ThreadedOracle::SetRootDirectory()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Oct 2019 11:56:10 +0100
parents 17660df24c36
children a8bf81756839
comparison
equal deleted inserted replaced
1108:477203923f26 1109:79b1b541fe15
51 class Item; 51 class Item;
52 class SleepingCommands; 52 class SleepingCommands;
53 53
54 IMessageEmitter& emitter_; 54 IMessageEmitter& emitter_;
55 Orthanc::WebServiceParameters orthanc_; 55 Orthanc::WebServiceParameters orthanc_;
56 std::string rootDirectory_;
56 Orthanc::SharedMessageQueue queue_; 57 Orthanc::SharedMessageQueue queue_;
57 State state_; 58 State state_;
58 boost::mutex mutex_; 59 boost::mutex mutex_;
59 std::vector<boost::thread*> workers_; 60 std::vector<boost::thread*> workers_;
60 boost::shared_ptr<SleepingCommands> sleepingCommands_; 61 boost::shared_ptr<SleepingCommands> sleepingCommands_;
74 75
75 virtual ~ThreadedOracle(); 76 virtual ~ThreadedOracle();
76 77
77 void SetOrthancParameters(const Orthanc::WebServiceParameters& orthanc); 78 void SetOrthancParameters(const Orthanc::WebServiceParameters& orthanc);
78 79
80 void SetRootDirectory(const std::string& rootDirectory);
81
79 void SetThreadsCount(unsigned int count); 82 void SetThreadsCount(unsigned int count);
80 83
81 void SetSleepingTimeResolution(unsigned int milliseconds); 84 void SetSleepingTimeResolution(unsigned int milliseconds);
82 85
83 void Start(); 86 void Start();