MCPcopy Create free account
hub / github.com/deskflow/deskflow / Thread

Method Thread

src/lib/mt/Thread.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19//
20
21Thread::Thread(IJob *job)
22{
23 m_thread = ARCH->newThread(&Thread::threadFunc, job);
24 if (m_thread == nullptr) {
25 // couldn't create thread
26 delete job;
27 throw MTThreadUnavailableException();
28 }
29}
30
31Thread::Thread(const Thread &thread) : m_thread{ARCH->copyThread(thread.m_thread)}
32{

Callers

nothing calls this directly

Calls 3

newThreadMethod · 0.45
copyThreadMethod · 0.45

Tested by

no test coverage detected