PTHREAD_CANCEL_ASYNCHRONOUS so myAtExit cancels immediately
This commit is contained in:
1 parent
95850d58e3
commit
0bc54a098d
1 file changed
+2
@@ -243,6 +243,8 @@ static void * start_routine(void *arg)
|
||||
|
||||
status = pthread_setspecific(getpthreadInfo,arg);
|
||||
checkStatusQuit(status,"pthread_setspecific","start_routine");
|
||||
status = pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS,NULL);
|
||||
checkStatusQuit(status,"pthread_setcanceltype","start_routine");
|
||||
semMutexMustTake(listMutex);
|
||||
ellAdd(&pthreadList,&pthreadInfo->node);
|
||||
semMutexGive(listMutex);
|
||||
|
||||
Reference in new issue
Block a user