Mercurial > hg > orthanc
diff Core/JobsEngine/JobsEngine.h @ 2665:389d050a2e66 jobs
fix deadlock, speed up unit tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 Jun 2018 13:51:31 +0200 |
parents | 441f23af9d89 |
children | d26dd081df97 |
line wrap: on
line diff
--- a/Core/JobsEngine/JobsEngine.h Thu Jun 07 21:37:40 2018 +0200 +++ b/Core/JobsEngine/JobsEngine.h Fri Jun 08 13:51:31 2018 +0200 @@ -54,6 +54,7 @@ State state_; JobsRegistry registry_; boost::thread retryHandler_; + unsigned int threadSleep_; std::vector<boost::thread*> workers_; bool IsRunning(); @@ -72,6 +73,8 @@ ~JobsEngine(); void SetWorkersCount(size_t count); + + void SetThreadSleep(unsigned int sleep); JobsRegistry& GetRegistry() {