| 195 | // ---------------------------------------------------------------------------------------- |
| 196 | |
| 197 | void threaded_object:: |
| 198 | pause ( |
| 199 | ) |
| 200 | { |
| 201 | auto_mutex M(m_); |
| 202 | |
| 203 | DLIB_ASSERT(id1 != get_thread_id() || id_valid == false, |
| 204 | "\tvoid threaded_object::pause()" |
| 205 | << "\n\tYou can NOT call this function from the thread that executes threaded_object::thread" |
| 206 | << "\n\tthis: " << this |
| 207 | ); |
| 208 | |
| 209 | is_running_ = false; |
| 210 | } |
| 211 | |
| 212 | // ---------------------------------------------------------------------------------------- |
| 213 |
nothing calls this directly
no test coverage detected