summaryrefslogtreecommitdiffstats
path: root/base/spin_wait.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/spin_wait.h')
-rw-r--r--base/spin_wait.h3
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)