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

@ -1858,7 +1858,8 @@ int startStateMachine() {
LOG(logERROR, ("Could not start Virtual acquisition thread\n"));
sharedMemory_setStatus(IDLE);
return FAIL;
}
} else
pthread_detach(pthread_virtual_tid);
LOG(logINFOGREEN, ("Virtual Acquisition started\n"));
return OK;
#endif