1 #include <boost/test/unit_test.hpp>
3 #include <boost/thread.hpp>
4 #include <boost/thread/barrier.hpp>
6 #include "server/server_scheduler.hpp"
11 BOOST_AUTO_TEST_CASE( scheduler_test_1
)
19 boost::barrier
barr(2);
20 void thread_fn(scheduler
<> * sched
)
22 for (int i
= 0; i
!= 1000; ++i
)
28 BOOST_AUTO_TEST_CASE( scheduler_test_2
)
31 boost::thread
thrd(boost::bind(thread_fn
, &sched
));