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

Method set_respawn

dlib/threads/threaded_object_extension.cpp:163–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

get_thread_idFunction · 0.70

Tested by

no test coverage detected