Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2002-09-30 08:19:14


Markus Schöpflin wrote:
>
> Hello,
>
> test_thread.cpp contains the following line of code which vacpp flags as
> invalid. ...

I'd probably "fix" this entire test_thread.cpp using something like:

void comparison(boost::thread_ptr tptr)
{
    boost::thread_ptr curr_tptr(boost::current_thread::ptr());
    BOOST_TEST(curr_tptr != tptr);
    BOOST_TEST(curr_tptr == boost::current_thread::ptr());
}

void test_comparison()
{
    new_thread(comparison, boost::current_thread::ptr())->join();
}

And, BTW, this would also work even WITHOUT "->join()" above... ;-)

regards,
alexander.


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