Mercurial > hg > orthanc-stone
comparison Platforms/Generic/Oracle.cpp @ 86:02c3a7a4938f wasm
removing of the Start() mechanism
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 May 2017 13:42:50 +0200 |
parents | f40a78cc7070 |
children | 4a541cd4fa83 |
comparison
equal
deleted
inserted
replaced
85:bd48431ac285 | 86:02c3a7a4938f |
---|---|
110 boost::mutex::scoped_lock lock(oracleMutex_); | 110 boost::mutex::scoped_lock lock(oracleMutex_); |
111 | 111 |
112 switch (state_) | 112 switch (state_) |
113 { | 113 { |
114 case State_Init: | 114 case State_Init: |
115 LOG(ERROR) << "You must call Oracle::Start()"; | |
116 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); | |
117 | |
118 case State_Started: | 115 case State_Started: |
119 queue_.Enqueue(protection.release()); | 116 queue_.Enqueue(protection.release()); |
120 break; | 117 break; |
121 | 118 |
122 case State_Stopped: | 119 case State_Stopped: |