diff options
Diffstat (limited to 'base/threading/platform_thread_posix.cc')
-rw-r--r-- | base/threading/platform_thread_posix.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc index 59162b9..77039a0 100644 --- a/base/threading/platform_thread_posix.cc +++ b/base/threading/platform_thread_posix.cc @@ -176,6 +176,13 @@ void PlatformThread::YieldCurrentThread() { } // 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; |