Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2000-08-11 17:19:24


Gary Powell wrote:
> Or you could use a library like "lambda" which has binders for just this
> sort of thing. (Even more reuse!)
>
> spawn_thread(bind(f,1,2,3) );
>
> or F f;
> spawn_thread(bind(&f::m, f, 1, 2, 3) ); // use member function m.

I strongly support this idea. This is exactly the signal/slot
concept (aka delayed lambda expression evaluation) we've
been discussing a few months ago.

The problem of spawning threads which call arbitrary functions
with any number of parameters (including non-static member
functions of some object) should be considered solved, I think.

Jens Maurer


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