Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/stop_token is written in an unsupported language. File is not indexed.

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 #ifndef _LIBCPP_STOP_TOKEN
0011 #define _LIBCPP_STOP_TOKEN
0012 
0013 /*
0014 
0015 namespace std {
0016   // [stoptoken], class stop_token
0017   class stop_token;
0018 
0019   // [stopsource], class stop_source
0020   class stop_source;
0021 
0022   // no-shared-stop-state indicator
0023   struct nostopstate_t {
0024     explicit nostopstate_t() = default;
0025   };
0026   inline constexpr nostopstate_t nostopstate{};
0027 
0028   // [stopcallback], class template stop_callback
0029   template<class Callback>
0030     class stop_callback;
0031 
0032 */
0033 
0034 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0035 #  include <__cxx03/stop_token>
0036 #else
0037 #  include <__config>
0038 
0039 #  if _LIBCPP_HAS_THREADS
0040 
0041 #    if _LIBCPP_STD_VER >= 20
0042 #      include <__stop_token/stop_callback.h>
0043 #      include <__stop_token/stop_source.h>
0044 #      include <__stop_token/stop_token.h>
0045 #    endif
0046 
0047 #    include <version>
0048 
0049 #    if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0050 #      pragma GCC system_header
0051 #    endif
0052 
0053 #  endif // _LIBCPP_HAS_THREADS
0054 
0055 #  if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
0056 #    include <cstddef>
0057 #    include <iosfwd>
0058 #  endif
0059 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0060 
0061 #endif // _LIBCPP_STOP_TOKEN