summaryrefslogtreecommitdiff
path: root/src/mongo/db/d_globals.h
blob: 0fc535ed71c5ba60b939b48bf3b56d2e1eb22af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// @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 MongoMutex;
    class ClientCursorMonitor;

    struct DGlobals : boost::noncopyable { 
        DGlobals();

        // these are intentionally never deleted:
        MongoMutex &dbMutex;
        ClientCursorMonitor& clientCursorMonitor;

    };

    extern DGlobals d;

};