diff options
author | Andrew Morrow <acm@mongodb.com> | 2015-06-18 15:02:54 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2015-06-19 22:51:28 -0400 |
commit | 1178eff1ddf60a7dac3a8cd71e2fdd278aa01b52 (patch) | |
tree | ee3096045eb4d2e4f69d57ef85c66b3be69e4302 /src/mongo/util/background.cpp | |
parent | 4b5fa5fc711e4cf94291665575fd1c742ad3e7c3 (diff) | |
download | mongo-1178eff1ddf60a7dac3a8cd71e2fdd278aa01b52.tar.gz |
SERVER-19041 Simplify SimpleMutex
Diffstat (limited to 'src/mongo/util/background.cpp')
-rw-r--r-- | src/mongo/util/background.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/background.cpp b/src/mongo/util/background.cpp index a7ee913defe..52147e923aa 100644 --- a/src/mongo/util/background.cpp +++ b/src/mongo/util/background.cpp @@ -105,7 +105,7 @@ namespace mongo { // completed. In the former case, we assume no threads are present, so we do not need // to use the mutex. When present, the mutex protects 'runner' and 'runnerDestroyed' // below. - SimpleMutex* const runnerMutex = new SimpleMutex("PeriodicTaskRunner"); + SimpleMutex* const runnerMutex = new SimpleMutex; // A scoped lock like object that only locks/unlocks the mutex if it exists. class ConditionalScopedLock { |