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

Method wait

dlib/threads/multithreaded_object_extension.cpp:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91// ----------------------------------------------------------------------------------------
92
93 void multithreaded_object::
94 wait (
95 ) const
96 {
97 auto_mutex M(m_);
98
99 DLIB_ASSERT(thread_ids.is_in_domain(get_thread_id()) == false,
100 "\tvoid multithreaded_object::wait()"
101 << "\n\tYou can NOT call this function from one of the threads registered in this object"
102 << "\n\tthis: " << this
103 );
104
105 while (threads_started > 0)
106 s.wait();
107 }
108
109// ----------------------------------------------------------------------------------------
110

Callers

nothing calls this directly

Calls 2

get_thread_idFunction · 0.70
waitMethod · 0.45

Tested by

no test coverage detected