summaryrefslogtreecommitdiff
path: root/src/mongo/util/concurrency/mutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/concurrency/mutex.h')
-rw-r--r--src/mongo/util/concurrency/mutex.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/util/concurrency/mutex.h b/src/mongo/util/concurrency/mutex.h
index 4e47c4e6df6..8674fe269a4 100644
--- a/src/mongo/util/concurrency/mutex.h
+++ b/src/mongo/util/concurrency/mutex.h
@@ -35,7 +35,6 @@
#include <pthread.h>
#endif
-#include "mongo/base/disallow_copying.h"
#include "mongo/util/assert_util.h"
namespace mongo {
@@ -49,7 +48,8 @@ namespace mongo {
#if defined(_WIN32)
class SimpleMutex {
- MONGO_DISALLOW_COPYING(SimpleMutex);
+ SimpleMutex(const SimpleMutex&) = delete;
+ SimpleMutex& operator=(const SimpleMutex&) = delete;
public:
SimpleMutex() {
@@ -74,7 +74,8 @@ private:
#else
class SimpleMutex {
- MONGO_DISALLOW_COPYING(SimpleMutex);
+ SimpleMutex(const SimpleMutex&) = delete;
+ SimpleMutex& operator=(const SimpleMutex&) = delete;
public:
SimpleMutex() {