Index: base/threading/platform_thread_win.cc |
diff --git a/base/threading/platform_thread_win.cc b/base/threading/platform_thread_win.cc |
index d4fda25903fcea290b2cc22eb74b0458f0f7d266..5cd96c169f141ad2461e70e897aa01d513ef0bc1 100644 |
--- a/base/threading/platform_thread_win.cc |
+++ b/base/threading/platform_thread_win.cc |
@@ -114,6 +114,11 @@ void PlatformThread::Sleep(int duration_ms) { |
} |
// static |
+void PlatformThread::Sleep(TimeDelta duration) { |
+ ::Sleep(duration.InMillisecondsRoundedUp()); |
+} |
+ |
+// static |
void PlatformThread::SetName(const char* name) { |
current_thread_name.Set(const_cast<char*>(name)); |
tracked_objects::ThreadData::InitializeThreadContext(name); |