summaryrefslogtreecommitdiffstats
path: root/libcxx/include/mutex
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-01-02 17:17:01 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-01-02 17:17:01 +0000
commit40a01d5314ffc3c5f4c379cd69015f962dde5f72 (patch)
tree33725944bdc9f3baa95beb2ee8612d1a6c1dbaf5 /libcxx/include/mutex
parent2640a0a5e576ed0474cebc6efd89fe65e1ebbd38 (diff)
downloadbcm5719-llvm-40a01d5314ffc3c5f4c379cd69015f962dde5f72.tar.gz
bcm5719-llvm-40a01d5314ffc3c5f4c379cd69015f962dde5f72.zip
Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later).
llvm-svn: 321658
Diffstat (limited to 'libcxx/include/mutex')
-rw-r--r--libcxx/include/mutex6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/include/mutex b/libcxx/include/mutex
index fbcc0989fa9..52e39b0fb1f 100644
--- a/libcxx/include/mutex
+++ b/libcxx/include/mutex
@@ -91,9 +91,9 @@ struct defer_lock_t {};
struct try_to_lock_t {};
struct adopt_lock_t {};
-constexpr defer_lock_t defer_lock{};
-constexpr try_to_lock_t try_to_lock{};
-constexpr adopt_lock_t adopt_lock{};
+inline constexpr defer_lock_t defer_lock{};
+inline constexpr try_to_lock_t try_to_lock{};
+inline constexpr adopt_lock_t adopt_lock{};
template <class Mutex>
class lock_guard
OpenPOWER on IntegriCloud