| 161 | // ---------------------------------------------------------------------------------------- |
| 162 | |
| 163 | void threaded_object:: |
| 164 | set_respawn ( |
| 165 | ) |
| 166 | { |
| 167 | auto_mutex M(m_); |
| 168 | |
| 169 | DLIB_ASSERT(id1 != get_thread_id() || id_valid == false, |
| 170 | "\tvoid threaded_object::set_respawn()" |
| 171 | << "\n\tYou can NOT call this function from the thread that executes threaded_object::thread" |
| 172 | << "\n\tthis: " << this |
| 173 | ); |
| 174 | |
| 175 | should_respawn_ = true; |
| 176 | } |
| 177 | |
| 178 | // ---------------------------------------------------------------------------------------- |
| 179 |
nothing calls this directly
no test coverage detected