10 Jan
2008
10 Jan
'08
7:48 p.m.
Ovanes Markarian
struct thread_safety_test { static void thread_function(boost::barrier& b) { b.wait();
Can't comment in these. I never used this class. | boost::mutex::scoped_lock lock(m); | BOOST_CHECK_EQUAL(1,0); | } | | void test_multiple_assertion_faults() | { | boost::thread_group tg; | boost::barrier b(100); | | for(size_t i=0; i<100; ++i) | { | tg.create_thread(boost::bind(thread_function, ref(b))); | } | } | }; | But unfortunately this does not work. May be I miss smth. here. I am not an expert in MT, but what exactly is the problem? Do you run is from inside the test case? Gennadiy