Chromium Code Reviews| Index: base/threading/platform_thread_posix.cc |
| diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc |
| index ea1f037725259ea890d88ea24c7b8ec0ab340628..a873efc2ba6c3d2e6267243f1e134a3b7f84acfd 100644 |
| --- a/base/threading/platform_thread_posix.cc |
| +++ b/base/threading/platform_thread_posix.cc |
| @@ -165,6 +165,13 @@ void PlatformThread::Sleep(int duration_ms) { |
| sleep_time = remaining; |
| } |
| +// static |
| +void PlatformThread::Sleep(TimeDelta duration) { |
| + // NOTE: This function is intended to supplant the other version of Sleep |
| + // in the future. See issue 108171 for more information. |
| + Sleep(duration.InMillisecondsRoundedUp()); |
|
brettw
2011/12/28 20:10:27
It seems like this is backwards. Sleep(ms) should
|
| +} |
| + |
| #if defined(OS_LINUX) |
| // static |
| void PlatformThread::SetName(const char* name) { |