summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-07-02 17:23:25 -0400
committerEliot Horowitz <eliot@10gen.com>2010-07-02 17:23:25 -0400
commit8fd251b2ed3d7985f7c06dd499b248538b4a8429 (patch)
treeee938aa7ad59fc92d8427113f17d621571f7becc
parent3eff98eead2603c0f5f8ff1f394817bde9513c0f (diff)
downloadmongo-8fd251b2ed3d7985f7c06dd499b248538b4a8429.tar.gz
add breakpoint for MutexDebugger
-rw-r--r--util/concurrency/mutex.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/concurrency/mutex.h b/util/concurrency/mutex.h
index df49fc2c1ce..eaf75099327 100644
--- a/util/concurrency/mutex.h
+++ b/util/concurrency/mutex.h
@@ -42,7 +42,8 @@ namespace mongo {
// b.lock(); alone is fine too
// only checked on _DEBUG builds.
string a,b;
-
+
+ void aBreakPoint(){}
void programEnding();
MutexDebugger();
void entering(mid m) {
@@ -54,6 +55,7 @@ namespace mongo {
Preceeding &preceeding = *_preceeding;
if( a == m ) {
+ aBreakPoint();
if( preceeding[b.c_str()] ) {
cout << "mutex problem " << b << " was locked before " << a << endl;
assert(false);