2
0
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:
Oliver Kowalke
2015-11-25 19:30:25 +01:00
parent 26227e31b2
commit a344247f07
4 changed files with 4 additions and 29 deletions

View File

@@ -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) );