Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-12-16 12:32:11


Michael Glassford wrote:
[...]
> Actually, I meant the pthread implementation of Boost.Thread, which does
> need to deal with exceptions, and looks like this:
>
> void call_once(void (*func)(), once_flag& flag)
> {
> pthread_once(&once, &key_init);
> pthread_setspecific(key, &func);
> pthread_once(&flag, do_once);
> }

That's http://tinyurl.com/zhqc (http://tinyurl.com/4xw6 and
http://tinyurl.com/4xwf). Hth.

regards,
alexander.


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