summaryrefslogtreecommitdiff
path: root/db/common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/common.cpp')
-rw-r--r--db/common.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/common.cpp b/db/common.cpp
index b7883f5e425..e711df9bfdc 100644
--- a/db/common.cpp
+++ b/db/common.cpp
@@ -26,4 +26,15 @@ namespace mongo {
/* we use new here so we don't have to worry about destructor orders at program shutdown */
MongoMutex &dbMutex( *(new MongoMutex("rw:dbMutex")) );
+ MongoMutex::MongoMutex(const char *name) : _m(name) {
+ static int n;
+ assert( ++n == 1 ); // singleton class
+
+ /*cout << sizeof(*this) << endl;
+ cout << sizeof(MutexInfo) << endl;
+ cout << sizeof(RWLock) << endl;
+ cout << sizeof(ThreadLocalValue<int>) << endl;
+ _state.get();*/
+ }
+
}