summaryrefslogtreecommitdiff
path: root/util/background.cpp
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-03-25 19:21:32 +0100
committerAntonin Kral <a.kral@bobek.cz>2010-03-25 19:21:32 +0100
commit0ca01a91ae0a3562e54c226e7b9512feb2ea83d0 (patch)
tree2b3886e435b0217d6afd63a213b04d32bb4b4f6f /util/background.cpp
parenta696359b248adef0cc8576fce3f473535e995136 (diff)
downloadmongodb-0ca01a91ae0a3562e54c226e7b9512feb2ea83d0.tar.gz
Imported Upstream version 1.4.0
Diffstat (limited to 'util/background.cpp')
-rw-r--r--util/background.cpp4
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);