MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / addTask

Method addTask

Algorithms/threadpool.h:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 return nt;
121 }
122 void addTask(Task *nt) {
123 if (!finished) {
124 pthread_mutex_lock(&qmtx);
125 tasks.push(nt);
126 pthread_cond_signal(&wcond);
127 pthread_mutex_unlock(&qmtx);
128 }
129 }
130 void finish() {
131 pthread_mutex_lock(&qmtx);
132 finished = true;

Callers 2

addTaskMethod · 0.45
testFunction · 0.45

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected