xref: /freebsd/contrib/llvm-project/libcxx/modules/std/stop_token.inc (revision 5f757f3ff9144b609b3c433dfd370cc6bdc191ad)
1*5f757f3fSDimitry Andric// -*- C++ -*-
2*5f757f3fSDimitry Andric//===----------------------------------------------------------------------===//
3*5f757f3fSDimitry Andric//
4*5f757f3fSDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5*5f757f3fSDimitry Andric// See https://llvm.org/LICENSE.txt for license information.
6*5f757f3fSDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7*5f757f3fSDimitry Andric//
8*5f757f3fSDimitry Andric//===----------------------------------------------------------------------===//
9*5f757f3fSDimitry Andric
10*5f757f3fSDimitry Andricexport namespace std {
11*5f757f3fSDimitry Andric#ifndef _LIBCPP_HAS_NO_THREADS
12*5f757f3fSDimitry Andric#  ifdef _LIBCPP_ENABLE_EXPERIMENTAL
13*5f757f3fSDimitry Andric  // [stoptoken], class stop_­token
14*5f757f3fSDimitry Andric  using std::stop_token;
15*5f757f3fSDimitry Andric
16*5f757f3fSDimitry Andric  // [stopsource], class stop_­source
17*5f757f3fSDimitry Andric  using std::stop_source;
18*5f757f3fSDimitry Andric
19*5f757f3fSDimitry Andric  // no-shared-stop-state indicator
20*5f757f3fSDimitry Andric  using std::nostopstate;
21*5f757f3fSDimitry Andric  using std::nostopstate_t;
22*5f757f3fSDimitry Andric
23*5f757f3fSDimitry Andric  // [stopcallback], class template stop_­callback
24*5f757f3fSDimitry Andric  using std::stop_callback;
25*5f757f3fSDimitry Andric#  endif // _LIBCPP_ENABLE_EXPERIMENTAL
26*5f757f3fSDimitry Andric#endif   // _LIBCPP_HAS_NO_THREADS
27*5f757f3fSDimitry Andric} // namespace std
28