Mercurial > hg > orthanc
comparison OrthancServer/Scheduler/ServerScheduler.h @ 1000:13e230bbd882 lua-scripting
rename filter to command
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Jul 2014 14:14:14 +0200 |
parents | db18c071fbd7 |
children | 6e7e5ed91c2d |
comparison
equal
deleted
inserted
replaced
999:db18c071fbd7 | 1000:13e230bbd882 |
---|---|
36 | 36 |
37 #include "../../Core/MultiThreading/Semaphore.h" | 37 #include "../../Core/MultiThreading/Semaphore.h" |
38 | 38 |
39 namespace Orthanc | 39 namespace Orthanc |
40 { | 40 { |
41 class ServerScheduler : public ServerFilterInstance::IListener | 41 class ServerScheduler : public ServerCommandInstance::IListener |
42 { | 42 { |
43 private: | 43 private: |
44 struct JobInfo | 44 struct JobInfo |
45 { | 45 { |
46 bool watched_; | 46 bool watched_; |
56 JobStatus_Running = 1, | 56 JobStatus_Running = 1, |
57 JobStatus_Success = 2, | 57 JobStatus_Success = 2, |
58 JobStatus_Failure = 3 | 58 JobStatus_Failure = 3 |
59 }; | 59 }; |
60 | 60 |
61 typedef IServerFilter::ListOfStrings ListOfStrings; | 61 typedef IServerCommand::ListOfStrings ListOfStrings; |
62 typedef std::map<std::string, JobInfo> Jobs; | 62 typedef std::map<std::string, JobInfo> Jobs; |
63 | 63 |
64 boost::mutex mutex_; | 64 boost::mutex mutex_; |
65 boost::condition_variable watchedJobFinished_; | 65 boost::condition_variable watchedJobFinished_; |
66 Jobs jobs_; | 66 Jobs jobs_; |