Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2001-10-11 12:29:08


on 10/11/01 10:27 AM, helmut.zeisel_at_[hidden] wrote:

> Observe that the wrapper has not been allocated
> dynamically:
>
> once_callback_wrapper w;
> w.cb=func;
> pthread_setspecific(key, &w);
> pthread_once(&flag, do_once);
>
> it is destroyed automatic and is indeed not needed
> when pthread_once has finished.

Oops. My mistake.

    -- Darin


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