2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-07 23:02:13 +00:00

Switching the Windows condition_variable and interruptible_wait functions over to using internal_timespec_clock.

This commit is contained in:
Austin Beer
2017-09-28 13:24:21 -06:00
parent 68abb96818
commit c2b207faa4
15 changed files with 362 additions and 610 deletions

View File

@@ -467,7 +467,7 @@ namespace boost
unique_lock<mutex> lock(mx);
condition_variable cond;
#if defined(CLOCK_MONOTONIC) && !defined BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC
#if defined(BOOST_THREAD_HAS_MONO_CLOCK) && !defined(BOOST_THREAD_INTERNAL_CLOCK_IS_MONO)
const detail::mono_timespec_timepoint& ts2 = detail::mono_timespec_clock::now() + ts;
detail::timespec_duration d = ts;
while (d > detail::timespec_duration::zero())
@@ -498,10 +498,6 @@ namespace boost
// sleep(xt);
// sleep_for(chrono::milliseconds(0));
# else
#error
// timespec ts;
// ts.tv_sec= 0;
// ts.tv_nsec= 0;
hidden::sleep_for(detail::timespec_duration::zero());
# endif
}