2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-03 09:02:17 +00:00

some fixed for concurrent access support

This commit is contained in:
Oliver Kowalke
2013-01-12 20:50:33 +01:00
parent 7a3a019c80
commit 1382e4eab6
8 changed files with 105 additions and 72 deletions

View File

@@ -61,14 +61,11 @@ bool interruption_requested() BOOST_NOEXCEPT
void interruption_point()
{
if ( interruption_requested() )
{
if ( interruption_enabled() )
if ( interruption_requested() && interruption_enabled() )
{
fibers::detail::scheduler::instance().active()->request_interruption( false);
throw fibers::fiber_interrupted();
}
}
}
}}