Path: blob/main/contrib/llvm-project/libcxx/include/__atomic/atomic_init.h
35262 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef _LIBCPP___ATOMIC_ATOMIC_INIT_H9#define _LIBCPP___ATOMIC_ATOMIC_INIT_H1011#include <__config>1213#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)14# pragma GCC system_header15#endif1617#define ATOMIC_FLAG_INIT {false}18#define ATOMIC_VAR_INIT(__v) {__v}1920#if _LIBCPP_STD_VER >= 20 && defined(_LIBCPP_COMPILER_CLANG_BASED) && !defined(_LIBCPP_DISABLE_DEPRECATION_WARNINGS)21# pragma clang deprecated(ATOMIC_VAR_INIT)22#endif2324#endif // _LIBCPP___ATOMIC_ATOMIC_INIT_H252627