$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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;
boost::thread(foo);
the members of the functor advantageously replace void*.