Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thread_pool always hangs when used with steady_timer #746

Open
ghost opened this issue Dec 30, 2020 · 0 comments
Open

thread_pool always hangs when used with steady_timer #746

ghost opened this issue Dec 30, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 30, 2020

@gummif commented on Feb 4, 2020, 11:26 AM UTC:

On Windows, thread_pool always hangs when used as an executor for steady_timer

#include <boost/asio/steady_timer.hpp>
#include <boost/asio/thread_pool.hpp>
int main()
{
    boost::asio::thread_pool tp{1};
    boost::asio::steady_timer t1{tp.get_executor()};
} // hangs in destructor of thread_pool (in shutdown())

Cancelling the timer or setting expire an date seems to have no effect. Looks like the same issue as in chriskohlhoff/asio#431.

This issue was moved by chriskohlhoff from boostorg/asio#324.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants