Commit 5d1c4265 authored by root's avatar root Committed by mir

ASan detected data race

parent ac154ac0
...@@ -336,6 +336,10 @@ static inline int abortTpool(tpool_t *t) { ...@@ -336,6 +336,10 @@ static inline int abortTpool(tpool_t *t) {
condbroadcast(t->incomingFifo.notifF); condbroadcast(t->incomingFifo.notifF);
mutexunlock(nf->lockF); mutexunlock(nf->lockF);
// Poor man's solution for letting the threads
// finish and avoid a data race
sleep(1);
/* join threads that are still runing */ /* join threads that are still runing */
thread = t->allthreads; thread = t->allthreads;
while (thread != NULL) { while (thread != NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment