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

Method is_running

dlib/threads/threaded_object_extension.cpp:50–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

get_thread_idFunction · 0.70

Tested by

no test coverage detected