Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:02:28

0001 /*
0002  * Copyright 2020 Andrey Semashev
0003  *
0004  * Distributed under the Boost Software License, Version 1.0.
0005  * See http://www.boost.org/LICENSE_1_0.txt
0006  */
0007 
0008 #ifndef BOOST_WINAPI_WAIT_ON_ADDRESS_HPP_INCLUDED_
0009 #define BOOST_WINAPI_WAIT_ON_ADDRESS_HPP_INCLUDED_
0010 
0011 #include <boost/winapi/config.hpp>
0012 
0013 #if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN8 && (BOOST_WINAPI_PARTITION_APP || BOOST_WINAPI_PARTITION_SYSTEM)
0014 
0015 #include <boost/winapi/basic_types.hpp>
0016 #include <boost/winapi/detail/header.hpp>
0017 
0018 #ifdef BOOST_HAS_PRAGMA_ONCE
0019 #pragma once
0020 #endif
0021 
0022 #if !defined(BOOST_USE_WINDOWS_H)
0023 extern "C" {
0024 
0025 // Note: These functions are not dllimport
0026 boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC
0027 WaitOnAddress(
0028     volatile boost::winapi::VOID_* addr,
0029     boost::winapi::PVOID_ compare_addr,
0030     boost::winapi::SIZE_T_ size,
0031     boost::winapi::DWORD_ timeout_ms);
0032 
0033 boost::winapi::VOID_ BOOST_WINAPI_WINAPI_CC
0034 WakeByAddressSingle(boost::winapi::PVOID_ addr);
0035 
0036 boost::winapi::VOID_ BOOST_WINAPI_WINAPI_CC
0037 WakeByAddressAll(boost::winapi::PVOID_ addr);
0038 
0039 } // extern "C"
0040 #endif // !defined(BOOST_USE_WINDOWS_H)
0041 
0042 namespace boost {
0043 namespace winapi {
0044 
0045 using ::WaitOnAddress;
0046 using ::WakeByAddressSingle;
0047 using ::WakeByAddressAll;
0048 
0049 }
0050 }
0051 
0052 #include <boost/winapi/detail/footer.hpp>
0053 
0054 #endif // BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN8 && (BOOST_WINAPI_PARTITION_APP || BOOST_WINAPI_PARTITION_SYSTEM)
0055 
0056 #endif // BOOST_WINAPI_WAIT_ON_ADDRESS_HPP_INCLUDED_