xref: /aosp_15_r20/external/cronet/third_party/libc++/src/modules/std/thread.cppm (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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//===----------------------------------------------------------------------===//
9
10module;
11#include <thread>
12
13export module std:thread;
14export namespace std {
15  // [thread.thread.class], class thread
16  using std::thread;
17
18  using std::swap;
19
20  // [thread.jthread.class], class jthread
21  // using std::jthread;
22
23  // [thread.thread.this], namespace this_thread
24  namespace this_thread {
25    using std::this_thread::get_id;
26
27    using std::this_thread::sleep_for;
28    using std::this_thread::sleep_until;
29    using std::this_thread::yield;
30  } // namespace this_thread
31
32  // [thread.thread.id]
33  using std::operator==;
34  using std::operator<=>;
35  using std::operator<<;
36
37  using std::formatter;
38
39  using std::hash;
40} // namespace std
41