2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-11 12:12:12 +00:00

Replace timespec by specific clock/timepoint/duration like classes that represent the monotonic, the real or the one used internaly at the platform level. Make use of these clocks/timepoints/durations almost all around. Need to replace yet all the occurrences of get_system_time().

This commit is contained in:
Vicente J. Botet Escriba
2017-09-02 14:42:25 +02:00
parent 39c23ddf5a
commit 1063638763
15 changed files with 543 additions and 280 deletions

View File

@@ -462,10 +462,10 @@ namespace boost
#if defined BOOST_THREAD_USES_DATETIME
bool thread::timed_join(boost::system_time const& wait_until)
{
return do_try_join_until(boost::detail::get_milliseconds_until(wait_until));
return do_try_join_for(boost::detail::get_milliseconds_until(wait_until));
}
#endif
bool thread::do_try_join_until_noexcept(uintmax_t milli, bool& res)
bool thread::do_try_join_for_noexcept(uintmax_t milli, bool& res)
{
detail::thread_data_ptr local_thread_info=(get_thread_info)();
if(local_thread_info)