MCPcopy Create free account
hub / github.com/chen3feng/toft / Detach

Method Detach

system/threading/thread.cpp:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void Thread::Detach()
121{
122 // After detached, the m_pimpl will be deleted in Thread::Impl::OnExit.
123 // So don't delete it here, just set it be NULL to mark this thread object
124 // to be detached.
125 if (m_pimpl) {
126 m_pimpl->DoDetach();
127 m_pimpl = NULL;
128 }
129}
130
131bool Thread::IsAlive() const
132{

Callers 1

TESTFunction · 0.45

Calls 1

DoDetachMethod · 0.80

Tested by 1

TESTFunction · 0.36