]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/atomic/test/ipc_wait_api.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / atomic / test / ipc_wait_api.cpp
1 // Copyright (c) 2020 Andrey Semashev
2 //
3 // Distributed under the Boost Software License, Version 1.0.
4 // See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6
7 #include <boost/atomic/ipc_atomic.hpp>
8 #include <boost/atomic/ipc_atomic_flag.hpp>
9 #include <boost/atomic/capabilities.hpp>
10
11 #include <boost/config.hpp>
12 #include <boost/cstdint.hpp>
13
14 #include "ipc_wait_test_helpers.hpp"
15
16 int main(int, char *[])
17 {
18 test_flag_wait_notify_api();
19
20 test_wait_notify_api< ipc_atomic_wrapper, boost::uint8_t >(1, 2, 3, BOOST_ATOMIC_HAS_NATIVE_INT8_IPC_WAIT_NOTIFY);
21 test_wait_notify_api< ipc_atomic_wrapper, boost::uint16_t >(1, 2, 3, BOOST_ATOMIC_HAS_NATIVE_INT16_IPC_WAIT_NOTIFY);
22 test_wait_notify_api< ipc_atomic_wrapper, boost::uint32_t >(1, 2, 3, BOOST_ATOMIC_HAS_NATIVE_INT32_IPC_WAIT_NOTIFY);
23 test_wait_notify_api< ipc_atomic_wrapper, boost::uint64_t >(1, 2, 3, BOOST_ATOMIC_HAS_NATIVE_INT64_IPC_WAIT_NOTIFY);
24 #if defined(BOOST_HAS_INT128) && !defined(BOOST_ATOMIC_TESTS_NO_INT128)
25 test_wait_notify_api< ipc_atomic_wrapper, boost::uint128_type >(1, 2, 3, BOOST_ATOMIC_HAS_NATIVE_INT128_IPC_WAIT_NOTIFY);
26 #endif
27
28 return boost::report_errors();
29 }