Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(598)

Unified Diff: base/spin_wait.h

Issue 552004: Style cleanup in preparation for auto-linting base/. (Closed)
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/simple_thread_unittest.cc ('k') | base/stack_container_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/spin_wait.h
diff --git a/base/spin_wait.h b/base/spin_wait.h
index 36ae083f20a278bcfb73f7e358e2a407fa115f92..d6571b74aaefc49ce67053e3e2454375f9c2dd9b 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__
« no previous file with comments | « base/simple_thread_unittest.cc ('k') | base/stack_container_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698