diff options
author | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-13 01:20:26 +0000 |
---|---|---|
committer | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-13 01:20:26 +0000 |
commit | f4ed29583452e1e1d62c05aa886586956f8d2cb9 (patch) | |
tree | 7af74b5055e1710a59f9457f979fb5b3bac56bde /base/platform_thread.h | |
parent | 703f427ed4c2e067d95890f8edbbbdc29fc62e1d (diff) | |
download | chromium_src-f4ed29583452e1e1d62c05aa886586956f8d2cb9.zip chromium_src-f4ed29583452e1e1d62c05aa886586956f8d2cb9.tar.gz chromium_src-f4ed29583452e1e1d62c05aa886586956f8d2cb9.tar.bz2 |
Add a cross-platform sleep API. We don't use TimeDelta
here to avoid linking to winmm.dll.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@772 0039d316-1c4b-4281-b951-d872f2087c98
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: |