Go to file
Pavel A. Lebedev 00d6e4ccca Fix outstanding_work.tracked executor move assignment.
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:

#include <boost/asio/execution/outstanding_work.hpp>
#include <boost/asio/prefer.hpp>
#include <boost/asio/static_thread_pool.hpp>

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();
}
2021-01-07 19:37:26 +11:00
.github/workflows Add clang 3.8 builds. 2020-12-29 18:36:06 +11:00
asio Fix outstanding_work.tracked executor move assignment. 2021-01-07 19:37:26 +11:00
.appveyor.yml Add MinGW builds to appveyor. 2020-07-22 16:11:02 +10:00
.cirrus.yml Add Cirrus CI configuration to test FreeBSD. 2020-04-23 18:09:00 +10:00
.gitignore Ignore scratch source files and symlinked boost. 2014-04-28 12:51:01 +10:00