diff options
Diffstat (limited to 'boost/winapi/thread_pool.hpp')
-rw-r--r-- | boost/winapi/thread_pool.hpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/boost/winapi/thread_pool.hpp b/boost/winapi/thread_pool.hpp index b92c73cb48..eebf298d9f 100644 --- a/boost/winapi/thread_pool.hpp +++ b/boost/winapi/thread_pool.hpp @@ -21,11 +21,11 @@ #if !defined( BOOST_USE_WINDOWS_H ) extern "C" { #if BOOST_WINAPI_PARTITION_DESKTOP -typedef boost::winapi::VOID_ (NTAPI *WAITORTIMERCALLBACKFUNC) +typedef boost::winapi::VOID_ (BOOST_WINAPI_NTAPI_CC *WAITORTIMERCALLBACKFUNC) (boost::winapi::PVOID_, boost::winapi::BOOLEAN_); typedef WAITORTIMERCALLBACKFUNC WAITORTIMERCALLBACK; -BOOST_SYMBOL_IMPORT boost::winapi::BOOL_ WINAPI +BOOST_SYMBOL_IMPORT boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC RegisterWaitForSingleObject( boost::winapi::PHANDLE_ phNewWaitObject, boost::winapi::HANDLE_ hObject, @@ -41,12 +41,12 @@ RegisterWaitForSingleObject( #if !defined( BOOST_USE_WINDOWS_H ) || (defined(BOOST_WINAPI_IS_MINGW) && BOOST_USE_WINAPI_VERSION < BOOST_WINAPI_VERSION_WINXP) extern "C" { #if BOOST_WINAPI_PARTITION_DESKTOP -BOOST_SYMBOL_IMPORT boost::winapi::BOOL_ WINAPI +BOOST_SYMBOL_IMPORT boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC UnregisterWait(boost::winapi::HANDLE_ WaitHandle); #endif #if BOOST_WINAPI_PARTITION_DESKTOP || BOOST_WINAPI_PARTITION_SYSTEM -BOOST_SYMBOL_IMPORT boost::winapi::BOOL_ WINAPI +BOOST_SYMBOL_IMPORT boost::winapi::BOOL_ BOOST_WINAPI_WINAPI_CC UnregisterWaitEx( boost::winapi::HANDLE_ WaitHandle, boost::winapi::HANDLE_ CompletionEvent); @@ -70,37 +70,37 @@ using ::UnregisterWaitEx; #endif #if defined( BOOST_USE_WINDOWS_H ) -const ULONG_ WT_EXECUTEDEFAULT_ = WT_EXECUTEDEFAULT; -const ULONG_ WT_EXECUTEINIOTHREAD_ = WT_EXECUTEINIOTHREAD; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEDEFAULT_ = WT_EXECUTEDEFAULT; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINIOTHREAD_ = WT_EXECUTEINIOTHREAD; #if defined( BOOST_WINAPI_IS_MINGW ) -const ULONG_ WT_EXECUTEINUITHREAD_ = 0x00000002; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINUITHREAD_ = 0x00000002; #else -const ULONG_ WT_EXECUTEINUITHREAD_ = WT_EXECUTEINUITHREAD; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINUITHREAD_ = WT_EXECUTEINUITHREAD; #endif -const ULONG_ WT_EXECUTEINWAITTHREAD_ = WT_EXECUTEINWAITTHREAD; -const ULONG_ WT_EXECUTEONLYONCE_ = WT_EXECUTEONLYONCE; -const ULONG_ WT_EXECUTEINTIMERTHREAD_ = WT_EXECUTEINTIMERTHREAD; -const ULONG_ WT_EXECUTELONGFUNCTION_ = WT_EXECUTELONGFUNCTION; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINWAITTHREAD_ = WT_EXECUTEINWAITTHREAD; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEONLYONCE_ = WT_EXECUTEONLYONCE; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINTIMERTHREAD_ = WT_EXECUTEINTIMERTHREAD; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTELONGFUNCTION_ = WT_EXECUTELONGFUNCTION; #if defined( BOOST_WINAPI_IS_MINGW ) -const ULONG_ WT_EXECUTEINPERSISTENTIOTHREAD_ = 0x00000040; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINPERSISTENTIOTHREAD_ = 0x00000040; #else -const ULONG_ WT_EXECUTEINPERSISTENTIOTHREAD_ = WT_EXECUTEINPERSISTENTIOTHREAD; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINPERSISTENTIOTHREAD_ = WT_EXECUTEINPERSISTENTIOTHREAD; #endif -const ULONG_ WT_EXECUTEINPERSISTENTTHREAD_ = WT_EXECUTEINPERSISTENTTHREAD; -const ULONG_ WT_TRANSFER_IMPERSONATION_ = WT_TRANSFER_IMPERSONATION; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINPERSISTENTTHREAD_ = WT_EXECUTEINPERSISTENTTHREAD; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_TRANSFER_IMPERSONATION_ = WT_TRANSFER_IMPERSONATION; #else // defined( BOOST_USE_WINDOWS_H ) -const ULONG_ WT_EXECUTEDEFAULT_ = 0x00000000; -const ULONG_ WT_EXECUTEINIOTHREAD_ = 0x00000001; -const ULONG_ WT_EXECUTEINUITHREAD_ = 0x00000002; -const ULONG_ WT_EXECUTEINWAITTHREAD_ = 0x00000004; -const ULONG_ WT_EXECUTEONLYONCE_ = 0x00000008; -const ULONG_ WT_EXECUTEINTIMERTHREAD_ = 0x00000020; -const ULONG_ WT_EXECUTELONGFUNCTION_ = 0x00000010; -const ULONG_ WT_EXECUTEINPERSISTENTIOTHREAD_ = 0x00000040; -const ULONG_ WT_EXECUTEINPERSISTENTTHREAD_ = 0x00000080; -const ULONG_ WT_TRANSFER_IMPERSONATION_ = 0x00000100; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEDEFAULT_ = 0x00000000; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINIOTHREAD_ = 0x00000001; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINUITHREAD_ = 0x00000002; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINWAITTHREAD_ = 0x00000004; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEONLYONCE_ = 0x00000008; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINTIMERTHREAD_ = 0x00000020; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTELONGFUNCTION_ = 0x00000010; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINPERSISTENTIOTHREAD_ = 0x00000040; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_EXECUTEINPERSISTENTTHREAD_ = 0x00000080; +BOOST_CONSTEXPR_OR_CONST ULONG_ WT_TRANSFER_IMPERSONATION_ = 0x00000100; #endif // defined( BOOST_USE_WINDOWS_H ) @@ -111,16 +111,16 @@ BOOST_FORCEINLINE BOOST_CONSTEXPR ULONG_ wt_set_max_threadpool_threads(ULONG_ fl return flags | (limit << 16); } -const ULONG_ wt_execute_default = WT_EXECUTEDEFAULT_; -const ULONG_ wt_execute_in_io_thread = WT_EXECUTEINIOTHREAD_; -const ULONG_ wt_execute_in_ui_thread = WT_EXECUTEINUITHREAD_; -const ULONG_ wt_execute_in_wait_thread = WT_EXECUTEINWAITTHREAD_; -const ULONG_ wt_execute_only_once = WT_EXECUTEONLYONCE_; -const ULONG_ wt_execute_in_timer_thread = WT_EXECUTEINTIMERTHREAD_; -const ULONG_ wt_execute_long_function = WT_EXECUTELONGFUNCTION_; -const ULONG_ wt_execute_in_persistent_io_thread = WT_EXECUTEINPERSISTENTIOTHREAD_; -const ULONG_ wt_execute_in_persistent_thread = WT_EXECUTEINPERSISTENTTHREAD_; -const ULONG_ wt_transfer_impersonation = WT_TRANSFER_IMPERSONATION_; +BOOST_CONSTEXPR_OR_CONST ULONG_ wt_execute_default = WT_EXECUTEDEFAULT_; +BOOST_CONSTEXPR_OR_CONST ULONG_ wt_execute_in_io_thread = WT_EXECUTEINIOTHREAD_; +BOOST_CONSTEXPR_OR_CONST ULONG_ wt_execute_in_ui_thread = WT_EXECUTEINUITHREAD_; +BOOST_CONSTEXPR_OR_CONST ULONG_ wt_execute_in_wait_thread = WT_EXECUTEINWAITTHREAD_; +BOOST_CONSTEXPR_OR_CONST ULONG_ wt_execute_only_once = WT_EXECUTEONLYONCE_; +BOOST_CONSTEXPR_OR_CONST ULONG_ wt_execute_in_timer_thread = WT_EXECUTEINTIMERTHREAD_; +BOOST_CONSTEXPR_OR_CONST ULONG_ wt_execute_long_function = WT_EXECUTELONGFUNCTION_; +BOOST_CONSTEXPR_OR_CONST ULONG_ wt_execute_in_persistent_io_thread = WT_EXECUTEINPERSISTENTIOTHREAD_; +BOOST_CONSTEXPR_OR_CONST ULONG_ wt_execute_in_persistent_thread = WT_EXECUTEINPERSISTENTTHREAD_; +BOOST_CONSTEXPR_OR_CONST ULONG_ wt_transfer_impersonation = WT_TRANSFER_IMPERSONATION_; } } |