summaryrefslogtreecommitdiff
path: root/util/concurrency
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2010-08-09 06:29:55 -0700
committerAlberto Lerner <alerner@10gen.com>2010-08-09 06:31:00 -0700
commita902556f80e34da3c641aebf9eeb58dc94643395 (patch)
treeb23818d0f7d2f3ad1b4a524e31a87947b00331ad /util/concurrency
parent3d9d505e4c218962b7049d0bc6e2a5dd022bc86b (diff)
downloadmongo-a902556f80e34da3c641aebf9eeb58dc94643395.tar.gz
SERVER-1517 Prep work for option to heap-checking during tests
Diffstat (limited to 'util/concurrency')
-rw-r--r--util/concurrency/mutex.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/concurrency/mutex.h b/util/concurrency/mutex.h
index 9ab3960cdd4..2cdd937eb07 100644
--- a/util/concurrency/mutex.h
+++ b/util/concurrency/mutex.h
@@ -20,6 +20,8 @@
#include <map>
#include <set>
+#include "../heapcheck.h"
+
namespace mongo {
extern bool __destroyingStatics;
@@ -142,9 +144,11 @@ namespace mongo {
#endif
{
_m = new boost::mutex();
+ IGNORE_OBJECT( _m ); // Turn-off heap checking on _m
}
~mutex() {
if( !__destroyingStatics ) {
+ UNIGNORE_OBJECT( _m );
delete _m;
}
}