Path: blob/main/contrib/llvm-project/libcxx/include/__atomic/contention_t.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_CONTENTION_T_H9#define _LIBCPP___ATOMIC_CONTENTION_T_H1011#include <__atomic/cxx_atomic_impl.h>12#include <__config>13#include <cstdint>1415#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)16# pragma GCC system_header17#endif1819_LIBCPP_BEGIN_NAMESPACE_STD2021#if defined(__linux__) || (defined(_AIX) && !defined(__64BIT__))22using __cxx_contention_t = int32_t;23#else24using __cxx_contention_t = int64_t;25#endif // __linux__ || (_AIX && !__64BIT__)2627using __cxx_atomic_contention_t = __cxx_atomic_impl<__cxx_contention_t>;2829_LIBCPP_END_NAMESPACE_STD3031#endif // _LIBCPP___ATOMIC_CONTENTION_T_H323334