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

Unified Diff: third_party/WebKit/Source/wtf/SpinLock.h

Issue 1436153002: Apply clang-format with Chromium-style without column limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « third_party/WebKit/Source/wtf/SizeLimits.cpp ('k') | third_party/WebKit/Source/wtf/SpinLock.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/SpinLock.h
diff --git a/third_party/WebKit/Source/wtf/SpinLock.h b/third_party/WebKit/Source/wtf/SpinLock.h
index 08724a370abb4bb6e4d861dfa267c3ea7ab89f91..d9ef671bb0a7eb86016d02da63a2ff2542b75111 100644
--- a/third_party/WebKit/Source/wtf/SpinLock.h
+++ b/third_party/WebKit/Source/wtf/SpinLock.h
@@ -46,21 +46,19 @@ namespace WTF {
// slower, but has a much better scheduling and power consumption behavior.
WTF_EXPORT void slowSpinLockLock(int volatile* lock);
-ALWAYS_INLINE void spinLockLock(int volatile* lock)
-{
- if (LIKELY(!atomicTestAndSetToOne(lock)))
- return;
- slowSpinLockLock(lock);
+ALWAYS_INLINE void spinLockLock(int volatile* lock) {
+ if (LIKELY(!atomicTestAndSetToOne(lock)))
+ return;
+ slowSpinLockLock(lock);
}
-ALWAYS_INLINE void spinLockUnlock(int volatile* lock)
-{
- atomicSetOneToZero(lock);
+ALWAYS_INLINE void spinLockUnlock(int volatile* lock) {
+ atomicSetOneToZero(lock);
}
-} // namespace WTF
+} // namespace WTF
using WTF::spinLockLock;
using WTF::spinLockUnlock;
-#endif // WTF_SpinLock_h
+#endif // WTF_SpinLock_h
« no previous file with comments | « third_party/WebKit/Source/wtf/SizeLimits.cpp ('k') | third_party/WebKit/Source/wtf/SpinLock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698