summaryrefslogtreecommitdiff
path: root/db/d_globals.cpp
blob: 7e0fd9e8cb074b80d3116c2f1333744a0c0fc581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// @file d_globals.cpp

#include "pch.h"
#include "d_globals.h"
#include "../util/concurrency/rwlock.h"
#include "clientcursor.h"
#include "mongomutex.h"

namespace mongo { 

    DGlobals::DGlobals() :
        writeExcluder( *(new RWLock("writeexcluder")) ),
        dbMutex( *(new MongoMutex("dbMutex")) ),
        clientCursorMonitor( *(new ClientCursorMonitor()) )
    {
    }

    DGlobals d;

}