summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/mmap_v1/durable_mapped_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/mmap_v1/durable_mapped_file.h')
-rw-r--r--src/mongo/db/storage/mmap_v1/durable_mapped_file.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/storage/mmap_v1/durable_mapped_file.h b/src/mongo/db/storage/mmap_v1/durable_mapped_file.h
index 0ebbd9dd7c9..c4cfb5a6131 100644
--- a/src/mongo/db/storage/mmap_v1/durable_mapped_file.h
+++ b/src/mongo/db/storage/mmap_v1/durable_mapped_file.h
@@ -33,6 +33,7 @@
#include "mongo/db/storage/mmap_v1/mmap.h"
#include "mongo/db/storage/paths.h"
+#include "mongo/stdx/mutex.h"
namespace mongo {
@@ -197,7 +198,7 @@ namespace mongo {
DurableMappedFile* find(void *p, /*out*/ size_t& ofs);
/** for doing many finds in a row with one lock operation */
- mutex& _mutex() { return _m; }
+ stdx::mutex& _mutex() { return _m; }
/** not-threadsafe, caller must hold _mutex() */
DurableMappedFile* find_inlock(void *p, /*out*/ size_t& ofs);
@@ -224,7 +225,7 @@ namespace mongo {
// Protects internal consistency of data structure
// Lock Ordering:
// Must be taken before MapViewMutex if both are taken to prevent deadlocks
- mutex _m;
+ stdx::mutex _m;
std::map<void*, DurableMappedFile*> _views;
#ifdef _WIN32