summaryrefslogtreecommitdiff
path: root/boost/detail/winapi/wait.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/detail/winapi/wait.hpp')
-rw-r--r--boost/detail/winapi/wait.hpp84
1 files changed, 10 insertions, 74 deletions
diff --git a/boost/detail/winapi/wait.hpp b/boost/detail/winapi/wait.hpp
index bd20d46826..017cefbf92 100644
--- a/boost/detail/winapi/wait.hpp
+++ b/boost/detail/winapi/wait.hpp
@@ -1,84 +1,20 @@
-// wait.hpp --------------------------------------------------------------//
-
-// Copyright 2010 Vicente J. Botet Escriba
-// Copyright 2015 Andrey Semashev
-
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
+/*
+ * Copyright 2017 Andrey Semashev
+ *
+ * Distributed under the Boost Software License, Version 1.0.
+ * See http://www.boost.org/LICENSE_1_0.txt
+ *
+ * This header is deprecated, use boost/winapi/wait.hpp instead.
+ */
#ifndef BOOST_DETAIL_WINAPI_WAIT_HPP
#define BOOST_DETAIL_WINAPI_WAIT_HPP
-#include <boost/detail/winapi/basic_types.hpp>
+#include <boost/winapi/wait.hpp>
+#include <boost/detail/winapi/detail/deprecated_namespace.hpp>
#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif
-#if !defined( BOOST_USE_WINDOWS_H )
-extern "C" {
-BOOST_SYMBOL_IMPORT boost::detail::winapi::DWORD_ WINAPI
-WaitForSingleObject(
- boost::detail::winapi::HANDLE_ hHandle,
- boost::detail::winapi::DWORD_ dwMilliseconds);
-
-BOOST_SYMBOL_IMPORT boost::detail::winapi::DWORD_ WINAPI
-WaitForMultipleObjects(
- boost::detail::winapi::DWORD_ nCount,
- boost::detail::winapi::HANDLE_ const* lpHandles,
- boost::detail::winapi::BOOL_ bWaitAll,
- boost::detail::winapi::DWORD_ dwMilliseconds);
-
-#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4
-BOOST_SYMBOL_IMPORT boost::detail::winapi::DWORD_ WINAPI
-SignalObjectAndWait(
- boost::detail::winapi::HANDLE_ hObjectToSignal,
- boost::detail::winapi::HANDLE_ hObjectToWaitOn,
- boost::detail::winapi::DWORD_ dwMilliseconds,
- boost::detail::winapi::BOOL_ bAlertable);
-#endif
-}
-#endif
-
-namespace boost {
-namespace detail {
-namespace winapi {
-
-using ::WaitForMultipleObjects;
-using ::WaitForSingleObject;
-#if BOOST_USE_WINAPI_VERSION >= BOOST_WINAPI_VERSION_NT4
-using ::SignalObjectAndWait;
-#endif
-
-#if defined( BOOST_USE_WINDOWS_H )
-
-const DWORD_ INFINITE_ = INFINITE;
-const DWORD_ WAIT_ABANDONED_ = WAIT_ABANDONED;
-const DWORD_ WAIT_OBJECT_0_ = WAIT_OBJECT_0;
-const DWORD_ WAIT_TIMEOUT_ = WAIT_TIMEOUT;
-const DWORD_ WAIT_FAILED_ = WAIT_FAILED;
-
-#else // defined( BOOST_USE_WINDOWS_H )
-
-const DWORD_ INFINITE_ = (DWORD_)0xFFFFFFFF;
-const DWORD_ WAIT_ABANDONED_ = 0x00000080L;
-const DWORD_ WAIT_OBJECT_0_ = 0x00000000L;
-const DWORD_ WAIT_TIMEOUT_ = 0x00000102L;
-const DWORD_ WAIT_FAILED_ = (DWORD_)0xFFFFFFFF;
-
-#endif // defined( BOOST_USE_WINDOWS_H )
-
-const DWORD_ infinite = INFINITE_;
-const DWORD_ wait_abandoned = WAIT_ABANDONED_;
-const DWORD_ wait_object_0 = WAIT_OBJECT_0_;
-const DWORD_ wait_timeout = WAIT_TIMEOUT_;
-const DWORD_ wait_failed = WAIT_FAILED_;
-
-const DWORD_ max_non_infinite_wait = (DWORD_)0xFFFFFFFE;
-
-}
-}
-}
-
#endif // BOOST_DETAIL_WINAPI_WAIT_HPP