mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-20 02:32:19 +00:00
remove forced_unwind and related functions
- unwinding the stack via exception is not always necessary - usually a fiber returns from its fiber-fn (stack is already unwound) - if a fiber has to terminate, interrupt that fiber
This commit is contained in:
@@ -334,13 +334,6 @@ context::request_interruption( bool req) noexcept {
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
context::request_unwinding() noexcept {
|
||||
BOOST_ASSERT( ! is_main_context() );
|
||||
BOOST_ASSERT( ! is_dispatcher_context() );
|
||||
flags_ |= flag_forced_unwind;
|
||||
}
|
||||
|
||||
void *
|
||||
context::get_fss_data( void const * vp) const {
|
||||
uintptr_t key( reinterpret_cast< uintptr_t >( vp) );
|
||||
|
||||
Reference in New Issue
Block a user