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 #if _LIBCPP_HAS_THREADS
12 // [thread.thread.class], class thread
17 // [thread.jthread.class], class jthread
20 // [thread.thread.this], namespace this_thread
21 namespace this_thread {
22 using std::this_thread::get_id;
24 using std::this_thread::sleep_for;
25 using std::this_thread::sleep_until;
26 using std::this_thread::yield;
27 } // namespace this_thread
30 using std::operator==;
31 using std::operator<=>;
32 # if _LIBCPP_HAS_LOCALIZATION
33 using std::operator<<;
34 # endif // _LIBCPP_HAS_LOCALIZATION
36 # if _LIBCPP_STD_VER >= 23
41 #endif // _LIBCPP_HAS_THREADS