Mercurial > hg > orthanc
comparison OrthancServer/Scheduler/ServerScheduler.cpp @ 783:c9cdd53a6b31 lua-scripting
main scheduler added to the server context
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Apr 2014 18:36:20 +0200 |
parents | f0ac3a53ccf2 |
children | 8c67382f44a7 |
comparison
equal
deleted
inserted
replaced
781:f0ac3a53ccf2 | 783:c9cdd53a6b31 |
---|---|
130 | 130 |
131 void ServerScheduler::Worker(ServerScheduler* that) | 131 void ServerScheduler::Worker(ServerScheduler* that) |
132 { | 132 { |
133 static const int32_t TIMEOUT = 100; | 133 static const int32_t TIMEOUT = 100; |
134 | 134 |
135 LOG(WARNING) << "The server scheduler has started"; | |
136 | |
135 while (!that->finish_) | 137 while (!that->finish_) |
136 { | 138 { |
137 std::auto_ptr<IDynamicObject> object(that->queue_.Dequeue(TIMEOUT)); | 139 std::auto_ptr<IDynamicObject> object(that->queue_.Dequeue(TIMEOUT)); |
138 if (object.get() != NULL) | 140 if (object.get() != NULL) |
139 { | 141 { |