Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / modules / std / mutex.inc
blob24c7f2e598a8bd914e68b1d82285410a921ffd31
1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
3 //
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
7 //
8 //===----------------------------------------------------------------------===//
10 export namespace std {
11 #ifndef _LIBCPP_HAS_NO_THREADS
12   // [thread.mutex.class], class mutex
13   using std::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;
34   using std::swap;
36   // [thread.lock.algorithm], generic locking algorithms
37   using std::lock;
38   using std::try_lock;
39 #endif // _LIBCPP_HAS_NO_THREADS
41   using std::once_flag;
43   using std::call_once;
44 } // namespace std