Boost logo

Boost :

From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2007-02-08 18:18:49

Eugene Lyubimkin wrote:

> *Now class _boost::thread_ have only one constructor:
> /thread::thread( const function0<void>& )
> /So we cannot send any parameter to thread's main function, because its
> prototype have no parameters.
> My proposal: let add constructor
> /thread::thread( const function1<void, void*>& )/
> Parameter with type /void* /will be sent to thread function.

struct Foo
        void operator()
                /* some code */
        /* some members */

Foo foo;

the members of the functor advantageously replace void*.

Boost list run by bdawes at, gregod at, cpdaniel at, john at