Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2007-09-21 07:23:07


Anthony,

Anthony Williams wrote:
> POSIX provides pthread_once. We should use it. The Windows Vista functions
> look to supply a similar facility, and do at least allow the passing of a
> parameter to the routine without using TSS.

did you catch my comments on this one (elsewhere in this thread)?

<cite>
   The pthread-based implementation seems overly simplified: It won't
   compile for C++ functions that are not 'extern "C"' with some
   compilers.
   Further, what about exceptions from within pthread_once?
</cite>

I agree that TSS is not a good alternative, however (but I don't think
it's needed for an improved pthread-based implementation).

Regards,
Tobias


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk