comparison OrthancServer/Sources/ServerIndex.h @ 4590:4a0bf1019335 db-changes

simplification of ServerIndex::Listener as ServerIndex::TransactionContext
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Mar 2021 16:04:09 +0100
parents 888868a5dc4e
children f7d5372b59b3
comparison
equal deleted inserted replaced
4589:bec74e29f86b 4590:4a0bf1019335
43 class ServerContext; 43 class ServerContext;
44 44
45 class ServerIndex : public StatelessDatabaseOperations 45 class ServerIndex : public StatelessDatabaseOperations
46 { 46 {
47 private: 47 private:
48 class TransactionContext;
48 class TransactionContextFactory; 49 class TransactionContextFactory;
49 class Listener;
50 class UnstableResourcePayload; 50 class UnstableResourcePayload;
51 51
52 bool done_; 52 bool done_;
53 boost::mutex monitoringMutex_; 53 boost::mutex monitoringMutex_;
54 boost::thread flushThread_; 54 boost::thread flushThread_;
55 boost::thread unstableResourcesMonitorThread_; 55 boost::thread unstableResourcesMonitorThread_;
56 56
57 std::unique_ptr<Listener> listener_;
58 LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload> unstableResources_; 57 LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload> unstableResources_;
59 58
60 uint64_t maximumStorageSize_; 59 uint64_t maximumStorageSize_;
61 unsigned int maximumPatients_; 60 unsigned int maximumPatients_;
62 61