Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-04-20 18:33:56


AMDG

Rene Rivera <grafikrobot <at> gmail.com> writes:

>
> Steven Watanabe wrote:
> > That isn't what I meant. If
> >
> > void(*f)();
> > {
> > scoped_lock lock(m);
> > f = make_c_function(...);
> > }
> > use f
> >
> > were sufficient I wouldn't have a problem.
> >
> > Unfortunatly, it is necessary to retain the lock
> > until you are done with f.
>
> Define "done with f".
>

Reach a point where you will not call it again.
(I'm refering the the value returned by make_c_function
not the variable f)

In Christ,
Steven Watanabe


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