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

Method ~threader

dlib/threads/threads_kernel_shared.cpp:99–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97// ----------------------------------------------------------------------------------------
98
99 threader::
100 ~threader (
101 )
102 {
103 data_mutex.lock();
104 destruct = true;
105 data_ready.broadcast();
106
107 // wait for all the threads to end
108 while (total_count > 0)
109 destructed.wait();
110
111 thread_pool_has_been_destroyed = true;
112 data_mutex.unlock();
113 }
114
115// ----------------------------------------------------------------------------------------
116

Callers

nothing calls this directly

Calls 4

lockMethod · 0.45
broadcastMethod · 0.45
waitMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected