[c++-pthreads] thread-safety definition
Alexander Terekhov
boo at terekhov.de
Thu Jan 8 13:28:54 UTC 2004
Mathieu Lacage wrote:
[...]
> The hard part seems to be 2) and 3) where, if you use exceptions to
> propagate a cancel operation from either a cancelation point or a
> pthread_exit call, you need to correctly handle the registered
> cancelation handlers _and_ the C++ catch blocks in the right order. That
> seems pretty hard (ie: impossible) to me, being just a _user_ of thread
> libraries.
You might want to take a look at this thread:
http://google.com/groups?th=f98e4fa7052aa25b
(Subject: __attribute__((cleanup(function)) versus try/finally)
regards,
alexander.
More information about the c++-pthreads
mailing list