| 19 | // |
| 20 | |
| 21 | Thread::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 | |
| 31 | Thread::Thread(const Thread &thread) : m_thread{ARCH->copyThread(thread.m_thread)} |
| 32 | { |
nothing calls this directly
no test coverage detected