summaryrefslogtreecommitdiff
path: root/db/common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/common.cpp')
-rw-r--r--db/common.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/common.cpp b/db/common.cpp
new file mode 100644
index 0000000..a199bd1
--- /dev/null
+++ b/db/common.cpp
@@ -0,0 +1,14 @@
+// common.cpp
+
+#include "stdafx.h"
+#include "concurrency.h"
+
+/**
+ * this just has globals
+ */
+namespace mongo {
+
+ /* we use new here so we don't have to worry about destructor orders at program shutdown */
+ MongoMutex &dbMutex( *(new MongoMutex) );
+
+}