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.thread.class], class thread
17 // [thread.jthread.class], class jthread
18 # if !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_STOP_TOKEN)
22 // [thread.thread.this], namespace this_thread
23 namespace this_thread {
24 using std::this_thread::get_id;
26 using std::this_thread::sleep_for;
27 using std::this_thread::sleep_until;
28 using std::this_thread::yield;
29 } // namespace this_thread
32 using std::operator==;
33 using std::operator<=>;
34 # ifndef _LIBCPP_HAS_NO_LOCALIZATION
35 using std::operator<<;
36 # endif // _LIBCPP_HAS_NO_LOCALIZATION
38 # if _LIBCPP_STD_VER >= 23
43 #endif // _LIBCPP_HAS_NO_THREADS