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

Method thread

dlib/test/multithreaded_object.cpp:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 private:
131
132 void thread()
133 {
134 cm.lock();
135 ++count;
136 cm.unlock();
137 // wait until we are supposed to stop
138 while (!should_stop())
139 dlib::sleep(1);
140 }
141
142 };
143

Callers

nothing calls this directly

Calls 3

sleepFunction · 0.50
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected