Mercurial > hg > orthanc-python
comparison Sources/OnChangeCallback.cpp @ 13:952e969a2240
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 01 Apr 2020 08:19:13 +0200 |
parents | 26762eb9d704 |
children | fd58eb5749ed |
comparison
equal
deleted
inserted
replaced
12:0b8239ce1bec | 13:952e969a2240 |
---|---|
96 elementAvailable_.notify_one(); | 96 elementAvailable_.notify_one(); |
97 } | 97 } |
98 | 98 |
99 PendingChange* Dequeue(unsigned int millisecondsTimeout) | 99 PendingChange* Dequeue(unsigned int millisecondsTimeout) |
100 { | 100 { |
101 if (millisecondsTimeout <= 0) | 101 if (millisecondsTimeout == 0) |
102 { | 102 { |
103 ORTHANC_PLUGINS_THROW_EXCEPTION(ParameterOutOfRange); | 103 ORTHANC_PLUGINS_THROW_EXCEPTION(ParameterOutOfRange); |
104 } | 104 } |
105 | 105 |
106 boost::mutex::scoped_lock lock(mutex_); | 106 boost::mutex::scoped_lock lock(mutex_); |