Re: a question about tst-cancel2

Saurabh Desai <[email protected]>
Newsgroups gmane.comp.lib.phil
Message-ID <[email protected]>
"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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.