Mercurial > hg > orthanc
comparison Core/MultiThreading/RunnableWorkersPool.h @ 1681:ee4367497d0d
got rid of buggy BagOfRunnablesBySteps
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 06 Oct 2015 14:02:39 +0200 |
parents | 15acdb19d520 |
children | b1291df2f780 |
comparison
equal
deleted
inserted
replaced
1680:4113a9a668b1 | 1681:ee4367497d0d |
---|---|
42 { | 42 { |
43 private: | 43 private: |
44 struct PImpl; | 44 struct PImpl; |
45 boost::shared_ptr<PImpl> pimpl_; | 45 boost::shared_ptr<PImpl> pimpl_; |
46 | 46 |
47 void Stop(); | |
48 | |
47 public: | 49 public: |
48 RunnableWorkersPool(size_t countWorkers); | 50 RunnableWorkersPool(size_t countWorkers); |
49 | 51 |
50 ~RunnableWorkersPool(); | 52 ~RunnableWorkersPool(); |
51 | 53 |
52 void Add(IRunnableBySteps* runnable); // Takes the ownership | 54 void Add(IRunnableBySteps* runnable); // Takes the ownership |
53 | |
54 void WaitDone(); | |
55 }; | 55 }; |
56 } | 56 } |