diff OrthancServer/ServerIndex.h @ 206:4453a010d0db

flush to disk thread
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Nov 2012 12:03:18 +0100
parents 7f4acf490179
children f276b175dcaf
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.h	Wed Nov 28 11:34:54 2012 +0100
+++ b/OrthancServer/ServerIndex.h	Wed Nov 28 12:03:18 2012 +0100
@@ -54,6 +54,7 @@
   {
   private:
     boost::mutex mutex_;
+    boost::thread flushThread_;
 
     std::auto_ptr<Internals::ServerIndexListener> listener_;
     std::auto_ptr<DatabaseWrapper> db_;
@@ -75,6 +76,8 @@
     ServerIndex(FileStorage& fileStorage,
                 const std::string& dbPath);
 
+    ~ServerIndex();
+
     StoreStatus Store(const DicomMap& dicomSummary,
                       const std::string& fileUuid,
                       uint64_t uncompressedFileSize,