MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / MicroSleep

Function MicroSleep

src/test/scheduler_tests.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static 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
41BOOST_AUTO_TEST_CASE(manythreads)
42{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected