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

Method TryStart

system/threading/thread.cpp:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105bool Thread::TryStart(const std::function<void ()>& function)
106{
107 m_pimpl->Initialize(function);
108 bool detached = m_pimpl->m_attributes.IsDetached();
109 bool result = m_pimpl->TryStart();
110 if (result && detached)
111 m_pimpl = NULL;
112 return result;
113}
114
115bool Thread::Join()
116{

Callers 1

TESTFunction · 0.45

Calls 2

IsDetachedMethod · 0.80
InitializeMethod · 0.45

Tested by 1

TESTFunction · 0.36