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

Unified Diff: base/spin_wait.h

Issue 9055001: Change code in base (primarily unit tests) to use Sleep(TimeDelta). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Qualify windows Sleep calls to go through PlatformThread. Created 9 years 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 | « base/shared_memory_unittest.cc ('k') | base/synchronization/condition_variable_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/spin_wait.h
diff --git a/base/spin_wait.h b/base/spin_wait.h
index 1e31b1457681dd2cec1117fb91c3694c9323f1c7..2d1db18278ba0fe363bae7d518d1e688a132938a 100644
--- a/base/spin_wait.h
+++ b/base/spin_wait.h
@@ -44,7 +44,7 @@
kTimeout.InMilliseconds()) << "Timed out"; \
break; \
} \
- base::PlatformThread::Sleep(50); \
+ base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(50)); \
} \
} while (0)
« no previous file with comments | « base/shared_memory_unittest.cc ('k') | base/synchronization/condition_variable_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698