Re: [c++-pthreads] thread-safety definition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [c++-pthreads] thread-safety definition
- To: Mathieu Lacage <Mathieu.Lacage@xxxxxxxxxxxxxxx>
- Subject: Re: [c++-pthreads] thread-safety definition
- From: Alexander Terekhov <boo@xxxxxxxxxxx>
- Date: Thu, 08 Jan 2004 14:28:54 +0100
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.