Removed RegisterWaitForSingleObjectEx as it is not present in all Windows SDK versions.

[SVN r86474]
This commit is contained in:
Andrey Semashev
2013-10-27 11:56:12 +00:00
parent 1e84644646
commit 3220177536

View File

@@ -15,6 +15,8 @@
#pragma once #pragma once
#endif #endif
#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN2K
namespace boost namespace boost
{ {
namespace detail namespace detail
@@ -27,7 +29,6 @@ typedef ::WAITORTIMERCALLBACKFUNC WAITORTIMERCALLBACKFUNC_;
typedef ::WAITORTIMERCALLBACK WAITORTIMERCALLBACK_; typedef ::WAITORTIMERCALLBACK WAITORTIMERCALLBACK_;
using ::RegisterWaitForSingleObject; using ::RegisterWaitForSingleObject;
using ::RegisterWaitForSingleObjectEx;
using ::UnregisterWait; using ::UnregisterWait;
using ::UnregisterWaitEx; using ::UnregisterWaitEx;
@@ -64,15 +65,6 @@ __declspec(dllimport) BOOL_ WINAPI RegisterWaitForSingleObject
ULONG_ dwFlags ULONG_ dwFlags
); );
__declspec(dllimport) HANDLE_ WINAPI RegisterWaitForSingleObjectEx
(
HANDLE_ hObject,
WAITORTIMERCALLBACK_ Callback,
PVOID_ Context,
ULONG_ dwMilliseconds,
ULONG_ dwFlags
);
__declspec(dllimport) BOOL_ WINAPI UnregisterWait(HANDLE_ WaitHandle); __declspec(dllimport) BOOL_ WINAPI UnregisterWait(HANDLE_ WaitHandle);
__declspec(dllimport) BOOL_ WINAPI UnregisterWaitEx(HANDLE_ WaitHandle, HANDLE_ CompletionEvent); __declspec(dllimport) BOOL_ WINAPI UnregisterWaitEx(HANDLE_ WaitHandle, HANDLE_ CompletionEvent);
@@ -99,4 +91,6 @@ inline ULONG_ wt_set_max_threadpool_threads(ULONG_ flags, ULONG_ limit)
} }
} }
#endif // BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN2K
#endif // BOOST_DETAIL_WINAPI_THREAD_POOL_HPP #endif // BOOST_DETAIL_WINAPI_THREAD_POOL_HPP