[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: a question about tst-cancel2



"Hu, Boris" wrote:
> 
> when a pthread is created, th->cancelhandling=0;
> then pthread_cancel(th) will only mark
> th->cancelhandling=4(CANCELED_BITMASK) without
> calling __pthread_kill().
> Where could I find the place to execute the cancel buf
> of th pthread? th pthread  calls sys_exit() directly
> after return according to clone.S
> 
If it's not an asynchronous cancellation, the pthread_testcancel()
calls __do_cancel(), which then longjmp back for an exit.
Is this what you are looking for? 

- Saurabh





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]