#else
#endif
+#ifdef BOOST_THREAD_PLATFORM_WIN32
+const ms max_diff(250);
+#else
+const ms max_diff(75);
+#endif
+
void f()
{
#if defined BOOST_THREAD_USES_CHRONO
time_point t1 = Clock::now();
m.unlock();
ns d = t1 - t0 - ms(250);
- // This test is spurious as it depends on the time the thread system switches the threads
- BOOST_TEST(d < ns(2500000)+ms(1000)); // within 2.5ms
+ BOOST_TEST(d < max_diff);
#else
//time_point t0 = Clock::now();
m.lock();
//time_point t1 = Clock::now();
m.unlock();
//ns d = t1 - t0 - ms(250);
- // This test is spurious as it depends on the time the thread system switches the threads
- //BOOST_TEST(d < ns(2500000)+ms(1000)); // within 2.5ms
+ //BOOST_TEST(d < max_diff);
#endif
}