119 "THREADS",
"Multiple acquirements of Sleeper are forbidden." )
133 "THREADS",
"Release without prior acquisition" )
136 "Release while ownership is with a different thread.\n" <<
194 "THREADS",
"Wait method called without prior acquisition" )
197 "Wait method called while owned by another thread.\n" <<
204 std::unique_lock<std::mutex> lock(
mutex, std::adopt_lock);
226 "THREADS",
"Wait method called without prior acquisition" )
229 "Wait method called while owned by another thread.\n" <<
234 std::unique_lock<std::mutex> lock(
mutex, std::adopt_lock);
236 event.wait_for( lock, maxSleepTime.Export(), [
this]{ return wasNotified; } );
255 "THREADS",
"Wait method called without prior acquisition" )
258 "Wait method called while owned by another thread.\n" <<
264 std::unique_lock<std::mutex> lock(
mutex, std::adopt_lock);
266 event.wait_until( lock, wakeUpTime.
Export(), [
this]{ return wasNotified; } );
269 template<
class Rep,
class Period >
273 "THREADS",
"Wait method called without prior acquisition" )
276 "Wait method called while owned by another thread.\n" <<
277 " This thread: " <<
Thread::GetCurrent()->GetName() << " (ID: "
278 <<
Thread::GetCurrent()->GetId() << ")\n"
281 std::unique_lock<std::
mutex> lock(
mutex, std::adopt_lock);
286 template<
class Clock,
class Duration >
290 "THREADS",
"Wait method called without prior acquisition" )
293 "Wait method called while owned by another thread.\n" <<
294 " This thread: " <<
Thread::GetCurrent()->GetName() << " (ID: "
295 <<
Thread::GetCurrent()->GetId() << ")\n"
299 std::unique_lock<std::
mutex> lock(
mutex, std::adopt_lock);