Mercurial > hg > orthanc
comparison OrthancFramework/Sources/JobsEngine/JobsRegistry.h @ 4063:e00f3d089991 framework
shared library of orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 11 Jun 2020 16:40:34 +0200 |
parents | d25f4c0fa160 |
children | bf7b9edf6b81 |
comparison
equal
deleted
inserted
replaced
4062:0953b3dc3261 | 4063:e00f3d089991 |
---|---|
51 #include <boost/thread/condition_variable.hpp> | 51 #include <boost/thread/condition_variable.hpp> |
52 | 52 |
53 namespace Orthanc | 53 namespace Orthanc |
54 { | 54 { |
55 // This class handles the state machine of the jobs engine | 55 // This class handles the state machine of the jobs engine |
56 class JobsRegistry : public boost::noncopyable | 56 class ORTHANC_PUBLIC JobsRegistry : public boost::noncopyable |
57 { | 57 { |
58 public: | 58 public: |
59 class IObserver : public boost::noncopyable | 59 class ORTHANC_PUBLIC IObserver : public boost::noncopyable |
60 { | 60 { |
61 public: | 61 public: |
62 virtual ~IObserver() | 62 virtual ~IObserver() |
63 { | 63 { |
64 } | 64 } |
202 void GetStatistics(unsigned int& pending, | 202 void GetStatistics(unsigned int& pending, |
203 unsigned int& running, | 203 unsigned int& running, |
204 unsigned int& success, | 204 unsigned int& success, |
205 unsigned int& errors); | 205 unsigned int& errors); |
206 | 206 |
207 class RunningJob : public boost::noncopyable | 207 class ORTHANC_PUBLIC RunningJob : public boost::noncopyable |
208 { | 208 { |
209 private: | 209 private: |
210 JobsRegistry& registry_; | 210 JobsRegistry& registry_; |
211 JobHandler* handler_; // Can only be accessed if the | 211 JobHandler* handler_; // Can only be accessed if the |
212 // registry mutex is locked! | 212 // registry mutex is locked! |