projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
libc++
/
trunk
/
src
/
thread.cpp
diff --git
a/src/third_party/libc++/trunk/src/thread.cpp
b/src/third_party/libc++/trunk/src/thread.cpp
index
bd2b7c3
..
e6f57c4
100644
(file)
--- a/
src/third_party/libc++/trunk/src/thread.cpp
+++ b/
src/third_party/libc++/trunk/src/thread.cpp
@@
-121,7
+121,9
@@
sleep_for(const chrono::nanoseconds& ns)
ts.tv_sec = ts_sec_max;
ts.tv_nsec = giga::num - 1;
}
- nanosleep(&ts, 0);
+
+ while (nanosleep(&ts, &ts) == -1 && errno == EINTR)
+ ;
}
}