Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-11-23 10:19:58


From: <d33pmind_at_[hidden]>
> How can I pass data to a thread ? Why does the boost::thread's
> constructor takes a boost::function0<void> as parameter, instead of a
> boost::function1<void> which would have allowed to pass it a pointer
> to a thread safe structure ?

Use boost::bind(threadproc, args).

--
Peter Dimov
Multi Media Ltd.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net