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

Method pause

dlib/threads/threaded_object_extension.cpp:197–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

get_thread_idFunction · 0.70

Tested by

no test coverage detected