| 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 |
nothing calls this directly
no test coverage detected