MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / detach

Method detach

src/tinythread/tinythread.cpp:237–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void thread::detach()
238{
239 mDataMutex.lock();
240 if(!mNotAThread)
241 {
242#if defined(_TTHREAD_WIN32_)
243 CloseHandle(mHandle);
244#elif defined(_TTHREAD_POSIX_)
245 pthread_detach(mHandle);
246#endif
247 mNotAThread = true;
248 }
249 mDataMutex.unlock();
250}
251
252thread::id thread::get_id() const
253{

Callers

nothing calls this directly

Calls 2

lockMethod · 0.80
unlockMethod · 0.80

Tested by

no test coverage detected