diff options
Diffstat (limited to 'util/background.cpp')
-rw-r--r-- | util/background.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/background.cpp b/util/background.cpp index ac3a48c..4125315 100644 --- a/util/background.cpp +++ b/util/background.cpp @@ -22,7 +22,7 @@ namespace mongo { BackgroundJob *BackgroundJob::grab = 0; - boost::mutex &BackgroundJob::mutex = *( new boost::mutex ); + mongo::mutex BackgroundJob::mutex; /* static */ void BackgroundJob::thr() { @@ -38,7 +38,7 @@ namespace mongo { } BackgroundJob& BackgroundJob::go() { - boostlock bl(mutex); + scoped_lock bl(mutex); assert( grab == 0 ); grab = this; boost::thread t(thr); |