From 1a02e9f98305c6de293e98bfbdcc69f5cc33b9e0 Mon Sep 17 00:00:00 2001 From: Andrew Morrow Date: Tue, 18 Aug 2015 14:42:02 -0400 Subject: SERVER-19846 Ban uses of std::timed_mutex --- src/mongo/stdx/mutex.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mongo/stdx') 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 -- cgit v1.2.1