| 48 | // ---------------------------------------------------------------------------------------- |
| 49 | |
| 50 | bool threaded_object:: |
| 51 | is_running ( |
| 52 | ) const |
| 53 | { |
| 54 | auto_mutex M(m_); |
| 55 | |
| 56 | DLIB_ASSERT(id1 != get_thread_id() || id_valid == false, |
| 57 | "\tbool threaded_object::is_running()" |
| 58 | << "\n\tYou can NOT call this function from the thread that executes threaded_object::thread" |
| 59 | << "\n\tthis: " << this |
| 60 | ); |
| 61 | |
| 62 | return is_running_; |
| 63 | } |
| 64 | |
| 65 | // ---------------------------------------------------------------------------------------- |
| 66 |
nothing calls this directly
no test coverage detected