mirror of
https://github.com/boostorg/asio.git
synced 2026-01-28 18:52:09 +00:00
Move assignments for io_context and thread pool executors are missing
the logic present in copy assignments that finishes work on old contexts.
This causes the following example to hang:
int main()
{
asio::static_thread_pool tp1{1},tp2{1};
{
auto work = asio::prefer(tp1.get_executor(),
asio::execution::outstanding_work.tracked);
work = asio::prefer(tp2.get_executor(),
asio::execution::outstanding_work.tracked);
}
tp1.join();
tp2.join();
}