diff --git a/include/boost/fiber/detail/fiber_object.hpp b/include/boost/fiber/detail/fiber_object.hpp index bb03b8b3..4d41624c 100644 --- a/include/boost/fiber/detail/fiber_object.hpp +++ b/include/boost/fiber/detail/fiber_object.hpp @@ -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&) {}