MCPcopy Create free account
hub / github.com/davisking/dlib / wait

Method wait

dlib/threads/threads_kernel_1.h:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 ) { }
85
86 void wait (
87 ) const
88 {
89 std::unique_lock<std::mutex> cs(m.cs, std::adopt_lock);
90 cv.wait(cs);
91 // Make sure we don't actually modify the mutex. Since the calling code will have locked
92 // it and it should remain locked.
93 cs.release();
94 }
95
96 bool wait_or_timeout (
97 unsigned long milliseconds

Callers 15

connect_threadMethod · 0.45
receive_threadMethod · 0.45
transmit_threadMethod · 0.45
~pipeMethod · 0.45
wait_until_emptyMethod · 0.45
enqueueMethod · 0.45
dequeueMethod · 0.45
enqueue_or_timeoutMethod · 0.45
listen_and_connect_allFunction · 0.45
popMethod · 0.45
clearMethod · 0.45

Calls 1

releaseMethod · 0.45

Tested by 5

wait_for_threadsFunction · 0.36
perform_testMethod · 0.36
sockstreambuf_testFunction · 0.36
thread_procMethod · 0.36
sockets_testFunction · 0.36