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

Method call_end_handlers

dlib/threads/threads_kernel_shared.cpp:146–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144// ----------------------------------------------------------------------------------------
145
146 void threader::
147 call_end_handlers (
148 )
149 {
150 reg.m.lock();
151 const thread_id_type id = get_thread_id();
152 thread_id_type id_copy;
153 member_function_pointer<> mfp;
154
155 // Remove all the member function pointers for this thread from the tree
156 // and call them.
157 while (reg.reg[id] != 0)
158 {
159 reg.reg.remove(id,id_copy,mfp);
160 reg.m.unlock();
161 mfp();
162 reg.m.lock();
163 }
164 reg.m.unlock();
165 }
166
167 // ------------------------------------------------------------------------------------
168

Callers

nothing calls this directly

Calls 4

removeMethod · 0.80
get_thread_idFunction · 0.70
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected