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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user