Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86474 - trunk/boost/detail/winapi
From: andrey.semashev_at_[hidden]
Date: 2013-10-27 07:56:12


Author: andysem
Date: 2013-10-27 07:56:12 EDT (Sun, 27 Oct 2013)
New Revision: 86474
URL: http://svn.boost.org/trac/boost/changeset/86474

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

Text files modified:
   trunk/boost/detail/winapi/thread_pool.hpp | 14 ++++----------
   1 files changed, 4 insertions(+), 10 deletions(-)

Modified: trunk/boost/detail/winapi/thread_pool.hpp
==============================================================================
--- trunk/boost/detail/winapi/thread_pool.hpp Sun Oct 27 05:27:01 2013 (r86473)
+++ trunk/boost/detail/winapi/thread_pool.hpp 2013-10-27 07:56:12 EDT (Sun, 27 Oct 2013) (r86474)
@@ -15,6 +15,8 @@
 #pragma once
 #endif
 
+#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN2K
+
 namespace boost
 {
 namespace detail
@@ -27,7 +29,6 @@
 typedef ::WAITORTIMERCALLBACK WAITORTIMERCALLBACK_;
 
 using ::RegisterWaitForSingleObject;
-using ::RegisterWaitForSingleObjectEx;
 using ::UnregisterWait;
 using ::UnregisterWaitEx;
 
@@ -64,15 +65,6 @@
     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 UnregisterWaitEx(HANDLE_ WaitHandle, HANDLE_ CompletionEvent);
 
@@ -99,4 +91,6 @@
 }
 }
 
+#endif // BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_WIN2K
+
 #endif // BOOST_DETAIL_WINAPI_THREAD_POOL_HPP


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk