Dev/detach pthreads not joining (#1019)

* detach the pthreads that are not joining else memory leak

* removed the clean up comment, also refactored the pthread join/detach for ctb 1g
This commit is contained in:
2024-11-07 11:24:46 +01:00
committed by GitHub
parent 06266f3905
commit 5088e5a205
19 changed files with 36 additions and 26 deletions

View File

@ -2572,7 +2572,8 @@ int startStateMachine() {
sharedMemory_setStatus(IDLE);
sharedMemory_unlockAcqFlag();
return FAIL;
}
} else
pthread_detach(virtual_tid);
LOG(logINFO, ("Virtual Acquisition started\n"));
sharedMemory_unlockAcqFlag();
return OK;