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

Method ~multithreaded_object

dlib/threads/multithreaded_object_extension.cpp:27–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25// ----------------------------------------------------------------------------------------
26
27 multithreaded_object::
28 ~multithreaded_object (
29 )
30 {
31 try
32 {
33 DLIB_ASSERT(number_of_threads_alive() == 0,
34 "\tmultithreaded_object::~multithreaded_object()"
35 << "\n\tYou have let a multithreaded object destruct itself before terminating its threads"
36 << "\n\tthis: " << this
37 );
38 }
39 catch (std::exception& e)
40 {
41 std::cerr << e.what() << std::endl;
42 assert(false);
43 abort();
44 }
45 }
46
47// ----------------------------------------------------------------------------------------
48

Callers

nothing calls this directly

Calls 1

whatMethod · 0.45

Tested by

no test coverage detected