2
0
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:
Oliver Kowalke
2013-10-01 19:44:06 +02:00
parent 147d41833a
commit decba3f33f
10 changed files with 117 additions and 169 deletions

View File

@@ -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