Mercurial > hg > orthanc
comparison OrthancFramework/Sources/JobsEngine/Operations/SequenceOfOperationsJob.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 |
---|---|
41 | 41 |
42 #include <list> | 42 #include <list> |
43 | 43 |
44 namespace Orthanc | 44 namespace Orthanc |
45 { | 45 { |
46 class SequenceOfOperationsJob : public IJob | 46 class ORTHANC_PUBLIC SequenceOfOperationsJob : public IJob |
47 { | 47 { |
48 public: | 48 public: |
49 class IObserver : public boost::noncopyable | 49 class ORTHANC_PUBLIC IObserver : public boost::noncopyable |
50 { | 50 { |
51 public: | 51 public: |
52 virtual ~IObserver() | 52 virtual ~IObserver() |
53 { | 53 { |
54 } | 54 } |
85 void Register(IObserver& observer); | 85 void Register(IObserver& observer); |
86 | 86 |
87 // This lock allows adding new operations to the end of the job, | 87 // This lock allows adding new operations to the end of the job, |
88 // from another thread than the worker thread, after the job has | 88 // from another thread than the worker thread, after the job has |
89 // been submitted for processing | 89 // been submitted for processing |
90 class Lock : public boost::noncopyable | 90 class ORTHANC_PUBLIC Lock : public boost::noncopyable |
91 { | 91 { |
92 private: | 92 private: |
93 SequenceOfOperationsJob& that_; | 93 SequenceOfOperationsJob& that_; |
94 boost::mutex::scoped_lock lock_; | 94 boost::mutex::scoped_lock lock_; |
95 | 95 |