diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-12-24 15:33:26 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-12-24 15:33:45 -0500 |
commit | ae1ecd9c786911f9f1f0242f0f7d702b3e5dfeba (patch) | |
tree | 92f8e1649e6f080b251ff5f1763679a72eb59b34 /src/mongo/db/d_globals.h | |
parent | dfa4cd7e2cf109b072440155fabc08a93c8045a0 (diff) | |
download | mongo-ae1ecd9c786911f9f1f0242f0f7d702b3e5dfeba.tar.gz |
bulk move of code to src/ SERVER-4551
Diffstat (limited to 'src/mongo/db/d_globals.h')
-rw-r--r-- | src/mongo/db/d_globals.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/mongo/db/d_globals.h b/src/mongo/db/d_globals.h new file mode 100644 index 00000000000..7c95d463cc3 --- /dev/null +++ b/src/mongo/db/d_globals.h @@ -0,0 +1,27 @@ +// @file d_globals.h +// +// these are global variables used in mongod ("d"). also used in test binary as that is effectively a variation on mongod code. +// that is, these are not in mongos. +// + +#pragma once + +namespace mongo { + + class RWLock; + class MongoMutex; + class ClientCursorMonitor; + + struct DGlobals : boost::noncopyable { + DGlobals(); + + // these are intentionally never deleted: + RWLock& writeExcluder; + MongoMutex &dbMutex; + ClientCursorMonitor& clientCursorMonitor; + + }; + + extern DGlobals d; + +}; |