PTHREAD_CANCEL_ASYNCHRONOUS so myAtExit cancels immediately

This commit is contained in:
Marty Kraimer
2000-09-28 20:31:35 +00:00
parent 95850d58e3
commit 0bc54a098d

View File

@@ -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);