diff options
Diffstat (limited to 'src/mongo/db/d_globals.h')
| -rw-r--r-- | src/mongo/db/d_globals.h | 24 |
1 files changed, 24 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..ce88168515f --- /dev/null +++ b/src/mongo/db/d_globals.h @@ -0,0 +1,24 @@ +// @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 RWLockRecursive; + class ClientCursorMonitor; + + struct DGlobals : boost::noncopyable { + DGlobals(); + + // these are intentionally never deleted: + ClientCursorMonitor& clientCursorMonitor; + + }; + + extern DGlobals d; + +}; |
