| 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 39b435da3ff518983ef0cfd2b544da7329588209..5f2105c5d93effecbd42ae148b4cfe6c614336fa 100644
|
| --- a/third_party/WebKit/Source/wtf/Locker.h
|
| +++ b/third_party/WebKit/Source/wtf/Locker.h
|
| @@ -32,15 +32,18 @@
|
|
|
| namespace WTF {
|
|
|
| -template <typename T> class Locker {
|
| - 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 {
|
| + 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;
|
|
|