| 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
|
|
|