CoopSync for TBB 0.1.0
Cooperative synchronization primitives for TBB resumable tasks
Loading...
Searching...
No Matches
feature_test.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 CERN
2//
3// SPDX-License-Identifier: Apache-2.0
4
7
8#pragma once
9
10// cppcheck-suppress syntaxError
11#if defined(__has_include) && __has_include(<version>)
12#include <version>
13#endif
14
15// NOLINTBEGIN(cppcoreguidelines-macro-to-enum, cppcoreguidelines-macro-usage)
16
17#if defined(COOPSYNC_TBB_DOXYGEN) || (defined(__cpp_lib_atomic_flag_test) && \
18 __cpp_lib_atomic_flag_test >= 201907L)
21#define COOPSYNC_TBB_HAS_ATOMIC_FLAG 1
22#endif
23
24#if defined(COOPSYNC_TBB_DOXYGEN) || \
25 (defined(__cpp_lib_atomic_ref) && __cpp_lib_atomic_ref >= 201806L)
28#define COOPSYNC_TBB_HAS_ATOMIC_REF_CONDITION 1
29#endif
30
31// NOLINTEND(cppcoreguidelines-macro-to-enum, cppcoreguidelines-macro-usage)