summaryrefslogtreecommitdiffstats
path: root/base/platform_thread.h
diff options
context:
space:
mode:
authorpaulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-12 22:37:12 +0000
committerpaulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-12 22:37:12 +0000
commit2141858324fd45ece7d3e96c60145a71e493fbe0 (patch)
treee65285a0a5694f82a3363c863ae198ff8578f789 /base/platform_thread.h
parent69d868a6ff2192096874277fd89aa9977ab202a8 (diff)
downloadchromium_src-2141858324fd45ece7d3e96c60145a71e493fbe0.zip
chromium_src-2141858324fd45ece7d3e96c60145a71e493fbe0.tar.gz
chromium_src-2141858324fd45ece7d3e96c60145a71e493fbe0.tar.bz2
Provide a cross platform sleep API.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@749 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_thread.h')
-rw-r--r--base/platform_thread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/platform_thread.h b/base/platform_thread.h
index 2dca402..4b3cb39 100644
--- a/base/platform_thread.h
+++ b/base/platform_thread.h
@@ -32,6 +32,8 @@
#include "build/build_config.h"
+class TimeDelta;
+
#if defined(OS_WIN)
#include <windows.h>
@@ -51,6 +53,9 @@ class PlatformThread {
// Yield the current thread so another thread can be scheduled.
static void YieldCurrentThread();
+
+ // Sleep for the specified duration.
+ static void Sleep(TimeDelta sleep_duration);
bool operator==(const PlatformThread& other_thread);