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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/base/spin_wait.h b/base/spin_wait.h
index 36ae083..d6571b7 100644
--- a/base/spin_wait.h
+++ b/base/spin_wait.h
@@ -37,7 +37,7 @@
#define SPIN_FOR_TIMEDELTA_OR_UNTIL_TRUE(delta, expression) do { \
base::Time start = base::Time::Now(); \
const base::TimeDelta kTimeout = delta; \
- while(!(expression)) { \
+ while (!(expression)) { \
if (kTimeout < base::Time::Now() - start) { \
EXPECT_LE((base::Time::Now() - start).InMilliseconds(), \
kTimeout.InMilliseconds()) << "Timed out"; \
@@ -45,7 +45,6 @@
} \
PlatformThread::Sleep(50); \
} \
- } \
- while(0)
+ } while (0)
#endif // BASE_SPIN_WAIT_H__