Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/ParallelSlicesCursor.h @ 53:c2dc924f1a63 wasm
removing threading out of the framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Apr 2017 16:57:49 +0200 |
parents | 28956ed68280 |
children | 53025eecbc95 |
comparison
equal
deleted
inserted
replaced
52:37e504582af6 | 53:c2dc924f1a63 |
---|---|
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "ParallelSlices.h" | 24 #include "ParallelSlices.h" |
25 #include "../Enumerations.h" | 25 #include "../Enumerations.h" |
26 | 26 |
27 #include <boost/thread/mutex.hpp> | |
28 | |
29 namespace OrthancStone | 27 namespace OrthancStone |
30 { | 28 { |
31 // This class is thread-safe | |
32 class ParallelSlicesCursor : public boost::noncopyable | 29 class ParallelSlicesCursor : public boost::noncopyable |
33 { | 30 { |
34 private: | 31 private: |
35 boost::mutex mutex_; | |
36 std::auto_ptr<ParallelSlices> slices_; | 32 std::auto_ptr<ParallelSlices> slices_; |
37 size_t currentSlice_; | 33 size_t currentSlice_; |
38 | 34 |
39 size_t GetDefaultSlice(); | 35 size_t GetDefaultSlice(); |
40 | 36 |