comparison OrthancServer/ServerContext.h @ 2672:3efc44fac209 jobs

periodically saving jobs
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 11 Jun 2018 15:57:25 +0200
parents 06c0a6b8a871
children 8e0bc055d18c
comparison
equal deleted inserted replaced
2671:06c0a6b8a871 2672:3efc44fac209
105 105
106 106
107 static void ChangeThread(ServerContext* that, 107 static void ChangeThread(ServerContext* that,
108 unsigned int sleepDelay); 108 unsigned int sleepDelay);
109 109
110 static void SaveJobsThread(ServerContext* that,
111 unsigned int sleepDelay);
112
110 void ReadDicomAsJsonInternal(std::string& result, 113 void ReadDicomAsJsonInternal(std::string& result,
111 const std::string& instancePublicId); 114 const std::string& instancePublicId);
112 115
113 void SetupJobsEngine(bool unitTesting, 116 void SetupJobsEngine(bool unitTesting,
114 bool loadJobsFromDatabase); 117 bool loadJobsFromDatabase);
136 boost::recursive_mutex listenersMutex_; 139 boost::recursive_mutex listenersMutex_;
137 140
138 bool done_; 141 bool done_;
139 SharedMessageQueue pendingChanges_; 142 SharedMessageQueue pendingChanges_;
140 boost::thread changeThread_; 143 boost::thread changeThread_;
144 boost::thread saveJobsThread_;
141 145
142 SharedArchive queryRetrieveArchive_; 146 SharedArchive queryRetrieveArchive_;
143 std::string defaultLocalAet_; 147 std::string defaultLocalAet_;
144 OrthancHttpHandler httpHandler_; 148 OrthancHttpHandler httpHandler_;
145 149