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

Method stop

dlib/threads/multithreaded_object_extension.cpp:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143// ----------------------------------------------------------------------------------------
144
145 void multithreaded_object::
146 stop (
147 )
148 {
149 auto_mutex M(m_);
150 should_stop_ = true;
151 is_running_ = false;
152 s.broadcast();
153 }
154
155// ----------------------------------------------------------------------------------------
156

Callers

nothing calls this directly

Calls 1

broadcastMethod · 0.45

Tested by

no test coverage detected