2
0
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:
William E. Kempf
2001-07-12 20:29:43 +00:00
parent 21067cb309
commit 0ae839e0bb
17 changed files with 110 additions and 21 deletions

View File

@@ -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;