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

Unified Diff: base/threading/platform_thread_posix.cc

Issue 10496002: Revert 140102 - Remove old PostDelayedTask interfaces that use int ms instead of TimeDelta. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « base/threading/platform_thread.h ('k') | base/threading/platform_thread_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/platform_thread_posix.cc
===================================================================
--- base/threading/platform_thread_posix.cc (revision 140108)
+++ base/threading/platform_thread_posix.cc (working copy)
@@ -176,6 +176,13 @@
}
// static
+void PlatformThread::Sleep(int duration_ms) {
+ // NOTE: This function will be supplanted by the other version of Sleep
+ // in the future. See issue 108171 for more information.
+ Sleep(TimeDelta::FromMilliseconds(duration_ms));
+}
+
+// static
void PlatformThread::Sleep(TimeDelta duration) {
struct timespec sleep_time, remaining;
« no previous file with comments | « base/threading/platform_thread.h ('k') | base/threading/platform_thread_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698