Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomParsing/ParsedDicomCache.h @ 4458:e4dae17035b9
fix ParsedDicomCache for emscripten
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 Jan 2021 12:43:44 +0100 |
parents | 789676a8c96a |
children | 83a6a84ba9df |
comparison
equal
deleted
inserted
replaced
4457:789676a8c96a | 4458:e4dae17035b9 |
---|---|
30 class ORTHANC_PUBLIC ParsedDicomCache : public boost::noncopyable | 30 class ORTHANC_PUBLIC ParsedDicomCache : public boost::noncopyable |
31 { | 31 { |
32 private: | 32 private: |
33 class Item; | 33 class Item; |
34 | 34 |
35 #if !defined(__EMSCRIPTEN__) | |
35 boost::mutex mutex_; | 36 boost::mutex mutex_; |
37 #endif | |
38 | |
36 size_t cacheSize_; | 39 size_t cacheSize_; |
37 std::unique_ptr<MemoryObjectCache> cache_; | 40 std::unique_ptr<MemoryObjectCache> cache_; |
38 std::unique_ptr<ParsedDicomFile> largeDicom_; | 41 std::unique_ptr<ParsedDicomFile> largeDicom_; |
39 std::string largeId_; | 42 std::string largeId_; |
40 size_t largeSize_; | 43 size_t largeSize_; |
53 size_t fileSize); | 56 size_t fileSize); |
54 | 57 |
55 class Accessor : public boost::noncopyable | 58 class Accessor : public boost::noncopyable |
56 { | 59 { |
57 private: | 60 private: |
61 #if !defined(__EMSCRIPTEN__) | |
58 boost::mutex::scoped_lock lock_; | 62 boost::mutex::scoped_lock lock_; |
63 #endif | |
64 | |
59 std::string id_; | 65 std::string id_; |
60 ParsedDicomFile* file_; | 66 ParsedDicomFile* file_; |
61 size_t fileSize_; | 67 size_t fileSize_; |
62 | 68 |
63 std::unique_ptr<MemoryObjectCache::Accessor> accessor_; | 69 std::unique_ptr<MemoryObjectCache::Accessor> accessor_; |