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

Unified Diff: runtime/vm/os_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 | « runtime/bin/utils_fuchsia.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_fuchsia.cc
diff --git a/runtime/vm/os_fuchsia.cc b/runtime/vm/os_fuchsia.cc
index 209c825e5f1056a4e2892de27fe6060c99a9e9f1..10e2640e922a7e6815ac38b1382d96088c88fc9b 100644
--- a/runtime/vm/os_fuchsia.cc
+++ b/runtime/vm/os_fuchsia.cc
@@ -162,13 +162,12 @@ uintptr_t OS::MaxRSS() {
void OS::Sleep(int64_t millis) {
- mx_nanosleep(millis * kMicrosecondsPerMillisecond *
- kNanosecondsPerMicrosecond);
+ SleepMicros(millis * kMicrosecondsPerMillisecond);
}
void OS::SleepMicros(int64_t micros) {
- mx_nanosleep(micros * kNanosecondsPerMicrosecond);
+ mx_nanosleep(mx_deadline_after(micros * kNanosecondsPerMicrosecond));
}
« no previous file with comments | « runtime/bin/utils_fuchsia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698