mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-14 00:32:17 +00:00
add assertions to check for state_running
This commit is contained in:
@@ -244,7 +244,9 @@ public:
|
||||
{
|
||||
set_ready();
|
||||
suspend();
|
||||
BOOST_ASSERT( is_running() );
|
||||
fn_();
|
||||
BOOST_ASSERT( is_running() );
|
||||
}
|
||||
catch ( forced_unwind const&)
|
||||
{}
|
||||
@@ -339,6 +341,9 @@ public:
|
||||
set_ready();
|
||||
suspend();
|
||||
fn_();
|
||||
BOOST_ASSERT( is_running() );
|
||||
fn_();
|
||||
BOOST_ASSERT( is_running() );
|
||||
}
|
||||
catch ( forced_unwind const&)
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user