
6 Aug
2010
6 Aug
'10
10:58 p.m.
Hi, 2010/7/27 Anthony Williams <anthony.ajw@gmail.com>:
In principle, I agree. pthread_cancel should be usable as the basis for, and interoperable with boost::thread::interrupt().
However, in practice it is not. I am not aware of any platforms where I can cleanly catch a cancellation from pthread_cancel and translate it into a boost::thread_interrupted exception. If I figure out a way, I'll gladly use it.
FYI, Urlich Drepper (glibc maintainer) wrote about pthread_cancel() and C++ issue in his blog. http://udrepper.livejournal.com/21541.html -- Ryo IGARASHI, Ph.D. rigarash@gmail.com