mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-20 02:32:19 +00:00
remove support for fiber interruption
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
#include <new>
|
||||
|
||||
#include "boost/fiber/exceptions.hpp"
|
||||
#include "boost/fiber/interruption.hpp"
|
||||
#include "boost/fiber/scheduler.hpp"
|
||||
|
||||
#ifdef BOOST_HAS_ABI_HEADERS
|
||||
@@ -301,8 +300,6 @@ void
|
||||
context::join() {
|
||||
// get active context
|
||||
context * active_ctx = context::active();
|
||||
// context::join() is a interruption point
|
||||
this_fiber::interruption_point();
|
||||
// protect for concurrent access
|
||||
std::unique_lock< detail::spinlock > lk( splk_);
|
||||
// wait for context which is not terminated
|
||||
@@ -319,8 +316,6 @@ context::join() {
|
||||
// active context resumed
|
||||
BOOST_ASSERT( context::active() == active_ctx);
|
||||
}
|
||||
// context::join() is a interruption point
|
||||
this_fiber::interruption_point();
|
||||
}
|
||||
|
||||
void
|
||||
@@ -407,25 +402,6 @@ context::set_ready( context * ctx) noexcept {
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
context::interruption_blocked( bool blck) noexcept {
|
||||
if ( blck) {
|
||||
flags_ |= flag_interruption_blocked;
|
||||
} else {
|
||||
flags_ &= ~flag_interruption_blocked;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
context::request_interruption( bool req) noexcept {
|
||||
BOOST_ASSERT( ! is_context( type::main_context) && ! is_context( type::dispatcher_context) );
|
||||
if ( req) {
|
||||
flags_ |= flag_interruption_requested;
|
||||
} else {
|
||||
flags_ &= ~flag_interruption_requested;
|
||||
}
|
||||
}
|
||||
|
||||
void *
|
||||
context::get_fss_data( void const * vp) const {
|
||||
uintptr_t key( reinterpret_cast< uintptr_t >( vp) );
|
||||
|
||||
Reference in New Issue
Block a user