Boost logo

Boost :

From: David Brownell (david_brownell_at_[hidden])
Date: 2003-03-26 16:04:57


Thank you very much for taking the time to answer those questions, I didn't
know the situation was that compilcated! I guess I am still not sure what
prevents the following from working:

//User code
void ThreadProc(void)
{
    ...
}

boost::thread *pThread = new boost::thread(ThreadProc);

//And within the thread code
void InternalThreadProc(const boost::function<void> &func)
{
    func();
    //TLS cleanup
}

thread(const boost::function<void> &userFunc)
{
    ...
    InternalThreadProc(userFunc);
}

Again, the code is rough, but I hope I am communicating clearly.

Thanks again,
David Brownell


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk