summaryrefslogtreecommitdiff
path: root/boost/asio/detail/win_event.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/asio/detail/win_event.hpp')
-rw-r--r--boost/asio/detail/win_event.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/boost/asio/detail/win_event.hpp b/boost/asio/detail/win_event.hpp
index ff4df5be23..d9aba6cbec 100644
--- a/boost/asio/detail/win_event.hpp
+++ b/boost/asio/detail/win_event.hpp
@@ -102,7 +102,11 @@ public:
{
state_ += 2;
lock.unlock();
+#if defined(BOOST_ASIO_WINDOWS_APP)
+ ::WaitForMultipleObjectsEx(2, events_, false, INFINITE, false);
+#else // defined(BOOST_ASIO_WINDOWS_APP)
::WaitForMultipleObjects(2, events_, false, INFINITE);
+#endif // defined(BOOST_ASIO_WINDOWS_APP)
lock.lock();
state_ -= 2;
}