Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-12-16 10:03:39

Peter Dimov wrote:
> Michael Glassford wrote:
> >
> > One other potential problem that needs to be addressed in the same
> > section of code: if the "called once" function throws an exception,
> > should the flag indicating that it has been called be set or not? If the
> > flag is set, the function will not be called again even though it
> > failed; on the other hand, if the flag is is not set, the function may
> > continue to be called and continue to throw an exception. What does
> > the pthread implementation do in this case?
> Pthreads don't need to deal with exceptions,

Except that


The pthread_once() function is not a cancellation point. However,
if init_routine is a cancellation point and is canceled, the effect
on once_control shall be as if pthread_once() was never called.



Boost list run by bdawes at, gregod at, cpdaniel at, john at