• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *             Copyright Andrey Semashev 2018.
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 /*!
8  * \file   thread_pool_abi.cpp
9  * \author Andrey Semashev
10  * \date   10.03.2018
11  *
12  * \brief  This file contains ABI test for thread_pool.hpp
13  */
14 
15 #include <boost/winapi/thread_pool.hpp>
16 #include <windows.h>
17 #include "abi_test_tools.hpp"
18 
main()19 int main()
20 {
21 #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN2K
22 
23     BOOST_WINAPI_TEST_CONSTANT(WT_EXECUTEDEFAULT);
24     BOOST_WINAPI_TEST_CONSTANT(WT_EXECUTEINIOTHREAD);
25 #if !defined(BOOST_WINAPI_IS_MINGW)
26     BOOST_WINAPI_TEST_CONSTANT(WT_EXECUTEINUITHREAD);
27 #endif
28     BOOST_WINAPI_TEST_CONSTANT(WT_EXECUTEINWAITTHREAD);
29     BOOST_WINAPI_TEST_CONSTANT(WT_EXECUTEONLYONCE);
30     BOOST_WINAPI_TEST_CONSTANT(WT_EXECUTEINTIMERTHREAD);
31     BOOST_WINAPI_TEST_CONSTANT(WT_EXECUTELONGFUNCTION);
32 #if !defined(BOOST_WINAPI_IS_MINGW)
33     BOOST_WINAPI_TEST_CONSTANT(WT_EXECUTEINPERSISTENTIOTHREAD);
34 #endif
35     BOOST_WINAPI_TEST_CONSTANT(WT_EXECUTEINPERSISTENTTHREAD);
36     BOOST_WINAPI_TEST_CONSTANT(WT_TRANSFER_IMPERSONATION);
37 
38 #if BOOST_WINAPI_PARTITION_DESKTOP
39     BOOST_WINAPI_TEST_TYPE_SAME(WAITORTIMERCALLBACKFUNC);
40     BOOST_WINAPI_TEST_TYPE_SAME(WAITORTIMERCALLBACK);
41 
42     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(RegisterWaitForSingleObject);
43     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(UnregisterWait);
44 #endif
45 
46 #if BOOST_WINAPI_PARTITION_DESKTOP || BOOST_WINAPI_PARTITION_SYSTEM
47     BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(UnregisterWaitEx);
48 #endif
49 
50 #endif // BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN2K
51 
52     return boost::report_errors();
53 }
54