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

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

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 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 | « third_party/WebKit/Source/wtf/ListHashSetTest.cpp ('k') | third_party/WebKit/Source/wtf/MainThread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Locker.h
diff --git a/third_party/WebKit/Source/wtf/Locker.h b/third_party/WebKit/Source/wtf/Locker.h
index a1f3aba404c1f9d8d8362d77a1bc579be4246132..4b8951448fa5da10dcb863781d8410f6c1f366c5 100644
--- a/third_party/WebKit/Source/wtf/Locker.h
+++ b/third_party/WebKit/Source/wtf/Locker.h
@@ -33,16 +33,18 @@
namespace WTF {
-template <typename T> class Locker final {
- STACK_ALLOCATED();
- WTF_MAKE_NONCOPYABLE(Locker);
-public:
- Locker(T& lockable) : m_lockable(lockable) { m_lockable.lock(); }
- ~Locker() { m_lockable.unlock(); }
-private:
- T& m_lockable;
-};
+template <typename T>
+class Locker final {
+ STACK_ALLOCATED();
+ WTF_MAKE_NONCOPYABLE(Locker);
+
+ public:
+ Locker(T& lockable) : m_lockable(lockable) { m_lockable.lock(); }
+ ~Locker() { m_lockable.unlock(); }
+ private:
+ T& m_lockable;
+};
}
using WTF::Locker;
« no previous file with comments | « third_party/WebKit/Source/wtf/ListHashSetTest.cpp ('k') | third_party/WebKit/Source/wtf/MainThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698