2 //===----------------------------------------------------------------------===//
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 export namespace std {
11 #ifndef _LIBCPP_HAS_NO_THREADS
12 // [thread.mutex.class], class mutex
14 // [thread.mutex.recursive], class recursive_mutex
15 using std::recursive_mutex;
16 // [thread.timedmutex.class] class timed_mutex
17 using std::timed_mutex;
18 // [thread.timedmutex.recursive], class recursive_timed_mutex
19 using std::recursive_timed_mutex;
21 using std::adopt_lock_t;
22 using std::defer_lock_t;
23 using std::try_to_lock_t;
25 using std::adopt_lock;
26 using std::defer_lock;
27 using std::try_to_lock;
29 // [thread.lock], locks
30 using std::lock_guard;
31 using std::scoped_lock;
32 using std::unique_lock;
36 // [thread.lock.algorithm], generic locking algorithms
39 #endif // _LIBCPP_HAS_NO_THREADS