Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(912)

Unified Diff: runtime/bin/utils_fuchsia.cc

Issue 2822833002: [fuchsia] Use new mx_deadline_after interface (Closed)
Patch Set: [fuchsia] Use new mx_deadline_after interface Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/os_fuchsia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/utils_fuchsia.cc
diff --git a/runtime/bin/utils_fuchsia.cc b/runtime/bin/utils_fuchsia.cc
index 6bb28178ddd4a7bcff33c8922ff3c166d8b4dfad..e617ce308f9baa5849723e865e0f60eed424141e 100644
--- a/runtime/bin/utils_fuchsia.cc
+++ b/runtime/bin/utils_fuchsia.cc
@@ -97,8 +97,8 @@ int64_t TimerUtils::GetCurrentMonotonicMicros() {
void TimerUtils::Sleep(int64_t millis) {
- mx_nanosleep(millis * kMicrosecondsPerMillisecond *
- kNanosecondsPerMicrosecond);
+ mx_nanosleep(mx_deadline_after(
+ millis * kMicrosecondsPerMillisecond * kNanosecondsPerMicrosecond));
}
} // namespace bin
« no previous file with comments | « no previous file | runtime/vm/os_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698