mirror of
https://github.com/boostorg/thread.git
synced 2026-02-01 21:12:08 +00:00
Applied patches for Unix/GNU toolset.
[SVN r10600]
This commit is contained in:
@@ -271,7 +271,10 @@ void thread::sleep(const xtime& xt)
|
||||
assert(res == 0);
|
||||
# elif defined(BOOST_HAS_NANOSLEEP)
|
||||
timespec ts;
|
||||
to_timespec(xt, ts);
|
||||
to_timespec_duration(xt, ts);
|
||||
|
||||
// nanosleep takes a timespec that is an offset, not
|
||||
// an absolute time.
|
||||
nanosleep(&ts, 0);
|
||||
# else
|
||||
semaphore sema;
|
||||
|
||||
Reference in New Issue
Block a user