summaryrefslogtreecommitdiff
path: root/src/mongo/stdx
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-08-18 14:42:02 -0400
committerAndrew Morrow <acm@mongodb.com>2015-08-24 08:26:03 -0400
commit1a02e9f98305c6de293e98bfbdcc69f5cc33b9e0 (patch)
tree328a236685b4bfc9df758e6d162e035b1603b0f3 /src/mongo/stdx
parent169a7ca486099a93e8d3ea19cc556dc2c55fcd0e (diff)
downloadmongo-1a02e9f98305c6de293e98bfbdcc69f5cc33b9e0.tar.gz
SERVER-19846 Ban uses of std::timed_mutex
Diffstat (limited to 'src/mongo/stdx')
-rw-r--r--src/mongo/stdx/mutex.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/stdx/mutex.h b/src/mongo/stdx/mutex.h
index 51c7318c639..dee03c3c0fe 100644
--- a/src/mongo/stdx/mutex.h
+++ b/src/mongo/stdx/mutex.h
@@ -33,8 +33,13 @@
namespace mongo {
namespace stdx {
-using ::std::mutex; // NOLINT
-using ::std::timed_mutex; // NOLINT
+using ::std::mutex; // NOLINT
+
+// NOTE: The timed_mutex class is currently banned in our code due to
+// a buggy implementation in GCC older than 4.9.
+//
+// using ::std::timed_mutex; // NOLINT
+
using ::std::recursive_mutex; // NOLINT
using ::std::adopt_lock_t; // NOLINT