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

Method clear

dlib/threads/multithreaded_object_extension.cpp:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47// ----------------------------------------------------------------------------------------
48
49 void multithreaded_object::
50 clear (
51 )
52 {
53 auto_mutex M(m_);
54 stop();
55 wait();
56 dead_threads.clear();
57 is_running_ = false;
58 should_stop_ = false;
59 }
60
61// ----------------------------------------------------------------------------------------
62

Callers

nothing calls this directly

Calls 2

stopFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected