forked from boostorg/beast
New name for polymorphic executor. Trait for detecting new executors
This commit is contained in:
@@ -32,13 +32,13 @@ public:
|
||||
BEAST_EXPECT(get_io_context(ioc) == &ioc);
|
||||
BEAST_EXPECT(get_io_context(ioc.get_executor()) == &ioc);
|
||||
BEAST_EXPECT(get_io_context(net::make_strand(ioc)) == &ioc);
|
||||
BEAST_EXPECT(get_io_context(net::executor(ioc.get_executor())) == &ioc);
|
||||
BEAST_EXPECT(get_io_context(net::any_io_executor(ioc.get_executor())) == &ioc);
|
||||
#if 0
|
||||
// VFALCO FIXME
|
||||
BEAST_EXPECT(
|
||||
get_io_context(
|
||||
net::strand<net::executor>(
|
||||
net::executor(ioc.get_executor()))) == &ioc);
|
||||
net::strand<net::any_io_executor>(
|
||||
net::any_io_executor(ioc.get_executor()))) == &ioc);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -43,12 +43,12 @@ namespace beast {
|
||||
#if 0
|
||||
template class basic_stream<
|
||||
net::ip::tcp,
|
||||
net::executor,
|
||||
net::any_io_executor,
|
||||
unlimited_rate_policy>;
|
||||
|
||||
template class basic_stream<
|
||||
net::ip::tcp,
|
||||
net::executor,
|
||||
net::any_io_executor,
|
||||
simple_rate_policy>;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
net::make_strand(ioc.get_executor());
|
||||
net::make_strand(net::make_strand(ioc));
|
||||
|
||||
net::executor ex(ioc.get_executor());
|
||||
net::any_io_executor ex(ioc.get_executor());
|
||||
net::make_strand(ex);
|
||||
|
||||
// this *should-not* compile
|
||||
|
||||
@@ -378,7 +378,7 @@ public:
|
||||
using socket_type =
|
||||
net::basic_stream_socket<
|
||||
net::ip::tcp,
|
||||
net::executor>;
|
||||
net::any_io_executor>;
|
||||
net::io_context ioc;
|
||||
stream<socket_type> ws1(ioc);
|
||||
stream<socket_type> ws2(ioc);
|
||||
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
boost::asio::ssl::stream<
|
||||
boost::asio::basic_stream_socket<
|
||||
boost::asio::ip::tcp,
|
||||
boost::asio::executor>>>();
|
||||
net::any_io_executor>>>();
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user