diff options
Diffstat (limited to '3rdparty/asio/src/tests/unit/signal_set.cpp')
-rw-r--r-- | 3rdparty/asio/src/tests/unit/signal_set.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/3rdparty/asio/src/tests/unit/signal_set.cpp b/3rdparty/asio/src/tests/unit/signal_set.cpp index 7118bb96ac0..cd8bd004154 100644 --- a/3rdparty/asio/src/tests/unit/signal_set.cpp +++ b/3rdparty/asio/src/tests/unit/signal_set.cpp @@ -2,7 +2,7 @@ // signal_set.cpp // ~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -40,6 +40,7 @@ void test() try { io_context ioc; + const io_context::executor_type ioc_ex = ioc.get_executor(); archetypes::lazy_handler lazy; asio::error_code ec; @@ -50,19 +51,16 @@ void test() signal_set set3(ioc, 1, 2); signal_set set4(ioc, 1, 2, 3); + signal_set set5(ioc_ex); + signal_set set6(ioc_ex, 1); + signal_set set7(ioc_ex, 1, 2); + signal_set set8(ioc_ex, 1, 2, 3); + // basic_io_object functions. signal_set::executor_type ex = set1.get_executor(); (void)ex; -#if !defined(ASIO_NO_DEPRECATED) - io_context& ioc_ref = set1.get_io_context(); - (void)ioc_ref; - - io_context& ioc_ref2 = set1.get_io_service(); - (void)ioc_ref2; -#endif // !defined(ASIO_NO_DEPRECATED) - // basic_signal_set functions. set1.add(1); |