MCPcopy Create free account
hub / github.com/davisking/dlib / ~my_object

Method ~my_object

examples/threaded_object_ex.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 }
28
29 ~my_object()
30 {
31 // Tell the thread() function to stop. This will cause should_stop() to
32 // return true so the thread knows what to do.
33 stop();
34
35 // Wait for the thread to stop before letting this object destruct itself.
36 // Also note, you are *required* to wait for the thread to end before
37 // letting this object destruct itself.
38 wait();
39 }
40
41private:
42

Callers

nothing calls this directly

Calls 1

stopFunction · 0.85

Tested by

no test coverage detected