MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / registerThread

Method registerThread

src/common/task_system/task.cpp:6–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

getTaskAndRegisterMethod · 0.80

Calls 1

hasExceptionNoLockFunction · 0.85

Tested by

no test coverage detected