mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-17 13:42:21 +00:00
replace context::terminated_is_linked() by context::is_terminated()
- context::terminated_is_linked() might be missleading because this state is transient - if the context is pushed to the terminated-queue, context::terminated_is_linked() returns true, if the context is removed from terminated-queue context::terminated_is_linked() returns false - new flag flag_terminated intoduced - flag_terminated will be set in context::set_terminated_(), which will be called for worker context' in the lambda
This commit is contained in:
@@ -113,7 +113,7 @@ context::resume() {
|
||||
|
||||
void
|
||||
context::release() noexcept {
|
||||
BOOST_ASSERT( terminated_is_linked() );
|
||||
BOOST_ASSERT( is_terminated() );
|
||||
|
||||
// notify all waiting fibers
|
||||
wait_queue_t::iterator e = wait_queue_.end();
|
||||
@@ -151,11 +151,6 @@ context::ready_is_linked() {
|
||||
return ready_hook_.is_linked();
|
||||
}
|
||||
|
||||
bool
|
||||
context::terminated_is_linked() {
|
||||
return terminated_hook_.is_linked();
|
||||
}
|
||||
|
||||
void
|
||||
context::wait_unlink() {
|
||||
wait_hook_.unlink();
|
||||
|
||||
Reference in New Issue
Block a user