23 Nov
2001
23 Nov
'01
3:15 p.m.
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 ? Julien.
23 Nov
23 Nov
3:19 p.m.
New subject: [Boost-Users] passing data to a thread
From:
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.
8404
Age (days ago)
8404
Last active (days ago)
1 comments
2 participants
participants (2)
-
d33pmind@yahoo.fr
-
Peter Dimov