diff options
Diffstat (limited to 'base/lock.h')
-rw-r--r-- | base/lock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/lock.h b/base/lock.h index ee22fa6..4e736af 100644 --- a/base/lock.h +++ b/base/lock.h @@ -55,7 +55,7 @@ class Lock { // A helper class that acquires the given Lock while the AutoLock is in scope. class AutoLock { public: - AutoLock(Lock& lock) : lock_(lock) { + explicit AutoLock(Lock& lock) : lock_(lock) { lock_.Acquire(); } |