| 4 | namespace common { |
| 5 | |
| 6 | bool Task::registerThread() { |
| 7 | lock_t lck{taskMtx}; |
| 8 | if (!hasExceptionNoLock() && canRegisterNoLock()) { |
| 9 | numThreadsRegistered++; |
| 10 | return true; |
| 11 | } |
| 12 | return false; |
| 13 | } |
| 14 | |
| 15 | void Task::deRegisterThreadAndFinalizeTask() { |
| 16 | lock_t lck{taskMtx}; |
no test coverage detected