]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/timming.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / thread / test / timming.hpp
1 // Copyright (C) 2018 Vicente Botet
2 //
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #ifndef BOOST_THREAD_TEST_TIMMING_HPP
7 #define BOOST_THREAD_TEST_TIMMING_HPP
8
9 #include <boost/thread/detail/config.hpp>
10 #include <boost/detail/lightweight_test.hpp>
11
12 #if ! defined BOOST_THREAD_TEST_TIME_MS
13 #ifdef BOOST_THREAD_PLATFORM_WIN32
14 #define BOOST_THREAD_TEST_TIME_MS 250
15 #else
16 #define BOOST_THREAD_TEST_TIME_MS 75
17 #endif
18 #endif
19
20 #if ! defined BOOST_THREAD_TEST_TIME_WARNING
21 #define BOOST_THREAD_TEST_IT(A, B) BOOST_TEST_LT((A).count(), (B).count())
22 #else
23 #define BOOST_THREAD_TEST_IT(A, B) BOOST_TEST_LT((A).count(), (B).count())
24 #endif
25
26 #endif