mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-13 00:12:17 +00:00
std::terminate() called if exception not catched
This commit is contained in:
@@ -51,7 +51,7 @@ restore_interruption::~restore_interruption() BOOST_NOEXCEPT
|
||||
bool interruption_enabled() BOOST_NOEXCEPT
|
||||
{
|
||||
fibers::detail::fiber_base::ptr_t f( fibers::detail::scheduler::instance()->active() );
|
||||
return f && f->interruption_enabled();
|
||||
return f && ! f->interruption_blocked();
|
||||
}
|
||||
|
||||
bool interruption_requested() BOOST_NOEXCEPT
|
||||
|
||||
Reference in New Issue
Block a user