Boost logo

Boost Users :

From: GoochRules! (goochrules_at_[hidden])
Date: 2004-03-10 18:27:26


Greetings,

I'm wondering why there is no option to pass a parameter to a thread
function with boost's threads. With pthreads and Windows CreateThread
I'm used to casting an object to a void*, and retrieving the object
within the thread function. The only thing similar with boost::thread
seems to be to create a struct with an operator()() and a constructor
that takes a void*. operator()() then calls an external function with
the passed void*.

Just curious about this design decision.

--M Peltzer


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