File indexing completed on 2025-01-18 09:53:47
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_WINAPI_THREAD_HPP_INCLUDED_
0010 #define BOOST_WINAPI_THREAD_HPP_INCLUDED_
0011
0012 #include <boost/winapi/basic_types.hpp>
0013 #include <boost/winapi/get_current_thread.hpp>
0014 #include <boost/winapi/get_current_thread_id.hpp>
0015
0016 #ifdef BOOST_HAS_PRAGMA_ONCE
0017 #pragma once
0018 #endif
0019
0020 #if BOOST_WINAPI_PARTITION_APP_SYSTEM
0021
0022 #include <boost/winapi/detail/header.hpp>
0023
0024 #if !defined( BOOST_USE_WINDOWS_H )
0025 extern "C" {
0026 BOOST_WINAPI_IMPORT boost::winapi::DWORD_ BOOST_WINAPI_WINAPI_CC
0027 SleepEx(
0028 boost::winapi::DWORD_ dwMilliseconds,
0029 boost::winapi::BOOL_ bAlertable);
0030 BOOST_WINAPI_IMPORT_EXCEPT_WM boost::winapi::VOID_ BOOST_WINAPI_WINAPI_CC Sleep(boost::winapi::DWORD_ dwMilliseconds);
0031 BOOST_WINAPI_IMPORT boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC SwitchToThread(BOOST_WINAPI_DETAIL_VOID);
0032 }
0033 #endif
0034
0035 namespace boost {
0036 namespace winapi {
0037 using ::SleepEx;
0038 using ::Sleep;
0039 using ::SwitchToThread;
0040 }
0041 }
0042
0043 #include <boost/winapi/detail/footer.hpp>
0044
0045 #endif
0046 #endif