diff options
author | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-22 21:49:05 +0000 |
---|---|---|
committer | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-22 21:49:05 +0000 |
commit | 4f7ce3e8339973a5e790b925ee1463e338ed0edb (patch) | |
tree | e84eacd848af0d11939c5008763914da5cbea244 /base/spin_wait.h | |
parent | 70fe7d516ef0a16bf97a6e2f0143ea6cf5ef6060 (diff) | |
download | chromium_src-4f7ce3e8339973a5e790b925ee1463e338ed0edb.zip chromium_src-4f7ce3e8339973a5e790b925ee1463e338ed0edb.tar.gz chromium_src-4f7ce3e8339973a5e790b925ee1463e338ed0edb.tar.bz2 |
Make the condition variable unit test cross platform.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1246 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/spin_wait.h')
-rw-r--r-- | base/spin_wait.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/spin_wait.h b/base/spin_wait.h index 7226387..31628bb 100644 --- a/base/spin_wait.h +++ b/base/spin_wait.h @@ -40,6 +40,7 @@ #ifndef BASE_SPIN_WAIT_H__ #define BASE_SPIN_WAIT_H__ +#include "base/platform_thread.h" #include "base/time.h" // Provide a macro that will wait no longer than 1 second for an asynchronous @@ -66,7 +67,7 @@ kTimeout.InMilliseconds()) << "Timed out"; \ break; \ } \ - Sleep(50); \ + PlatformThread::Sleep(50); \ } \ } \ while(0) |