2
0
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:
Oliver Kowalke
2013-01-31 18:45:16 +01:00
parent c781386ed7
commit a80f153ae2

View File

@@ -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&)
{}