Mercurial > hg > orthanc
comparison Core/MultiThreading/BagOfTasksProcessor.h @ 1923:6ac7f31fc543
fix freeze if empty bag of tasks
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Mar 2016 08:29:22 +0100 |
parents | b97aa579e85b |
children | 5b818f677dd6 |
comparison
equal
deleted
inserted
replaced
1922:369897749653 | 1923:6ac7f31fc543 |
---|---|
107 uint64_t bag_; | 107 uint64_t bag_; |
108 bool hasJoined_; | 108 bool hasJoined_; |
109 bool status_; | 109 bool status_; |
110 | 110 |
111 Handle(BagOfTasksProcessor& that, | 111 Handle(BagOfTasksProcessor& that, |
112 uint64_t bag) : | 112 uint64_t bag, |
113 bool empty) : | |
113 that_(that), | 114 that_(that), |
114 bag_(bag), | 115 bag_(bag), |
115 hasJoined_(false) | 116 hasJoined_(empty) |
116 { | 117 { |
117 } | 118 } |
118 | 119 |
119 public: | 120 public: |
120 ~Handle() | 121 ~Handle() |