comparison Framework/Volumes/ImageBuffer3D.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 4a541cd4fa83
comparison
equal deleted inserted replaced
52:37e504582af6 53:c2dc924f1a63
20 20
21 21
22 #pragma once 22 #pragma once
23 23
24 #include "../Enumerations.h" 24 #include "../Enumerations.h"
25 #include "../Toolbox/IThreadSafety.h"
26 #include "../Toolbox/SliceGeometry.h" 25 #include "../Toolbox/SliceGeometry.h"
27 #include "../Toolbox/ParallelSlices.h" 26 #include "../Toolbox/ParallelSlices.h"
28 27
29 #include "../../Resources/Orthanc/Core/Images/Image.h" 28 #include "../../Resources/Orthanc/Core/Images/Image.h"
30 29
34 # include <boost/thread/win32/mutex.hpp> 33 # include <boost/thread/win32/mutex.hpp>
35 #endif 34 #endif
36 35
37 namespace OrthancStone 36 namespace OrthancStone
38 { 37 {
39 class ImageBuffer3D : public IThreadSafe 38 class ImageBuffer3D : public boost::noncopyable
40 { 39 {
41 private: 40 private:
42 typedef boost::shared_mutex Mutex; 41 typedef boost::shared_mutex Mutex;
43 typedef boost::unique_lock<Mutex> WriteLock; 42 typedef boost::unique_lock<Mutex> WriteLock;
44 typedef boost::shared_lock<Mutex> ReadLock; 43 typedef boost::shared_lock<Mutex> ReadLock;