diff options
Diffstat (limited to 'base/platform_thread.h')
-rw-r--r-- | base/platform_thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/platform_thread.h b/base/platform_thread.h index 2dca402..82f3362 100644 --- a/base/platform_thread.h +++ b/base/platform_thread.h @@ -52,6 +52,9 @@ class PlatformThread { // Yield the current thread so another thread can be scheduled. static void YieldCurrentThread(); + // Sleeps for the specified duration (units are milliseconds). + static void Sleep(int duration_ms); + bool operator==(const PlatformThread& other_thread); private: |