| 27 | } |
| 28 | |
| 29 | static void MicroSleep(uint64_t n) |
| 30 | { |
| 31 | #if defined(HAVE_WORKING_BOOST_SLEEP_FOR) |
| 32 | boost::this_thread::sleep_for(boost::chrono::microseconds(n)); |
| 33 | #elif defined(HAVE_WORKING_BOOST_SLEEP) |
| 34 | boost::this_thread::sleep(boost::posix_time::microseconds(n)); |
| 35 | #else |
| 36 | //should never get here |
| 37 | #error missing boost sleep implementation |
| 38 | #endif |
| 39 | } |
| 40 | |
| 41 | BOOST_AUTO_TEST_CASE(manythreads) |
| 42 | { |
no outgoing calls
no test coverage detected