Mercurial > hg > orthanc
diff Core/MultiThreading/SharedMessageQueue.h @ 995:8c67382f44a7 lua-scripting
limit number of jobs in the scheduler
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 03 Jul 2014 15:58:53 +0200 |
parents | 2d0a347e8cfc |
children | 7266c37d0354 |
line wrap: on
line diff
--- a/Core/MultiThreading/SharedMessageQueue.h Wed Jul 02 14:42:49 2014 +0200 +++ b/Core/MultiThreading/SharedMessageQueue.h Thu Jul 03 15:58:53 2014 +0200 @@ -40,7 +40,7 @@ namespace Orthanc { - class SharedMessageQueue + class SharedMessageQueue : public boost::noncopyable { private: typedef std::list<IDynamicObject*> Queue; @@ -52,8 +52,8 @@ boost::condition_variable emptied_; public: - SharedMessageQueue(unsigned int maxSize = 0); - + explicit SharedMessageQueue(unsigned int maxSize = 0); + ~SharedMessageQueue(); // This transfers the ownership of the message