Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions include/boost/coroutine2/detail/pull_control_block_cc.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ template< typename T >
void
pull_coroutine< T >::control_block::destroy( control_block * cb) noexcept {
boost::context::fiber c = std::move( cb->c);
// destroy control structure
cb->~control_block();
// destroy coroutine's stack
cb->state |= state_t::destroy;
// destroy control structure
cb->~control_block();
}

template< typename T >
Expand Down Expand Up @@ -191,10 +191,10 @@ template< typename T >
void
pull_coroutine< T & >::control_block::destroy( control_block * cb) noexcept {
boost::context::fiber c = std::move( cb->c);
// destroy control structure
cb->~control_block();
// destroy coroutine's stack
cb->state |= state_t::destroy;
// destroy control structure
cb->~control_block();
}

template< typename T >
Expand Down Expand Up @@ -324,10 +324,10 @@ inline
void
pull_coroutine< void >::control_block::destroy( control_block * cb) noexcept {
boost::context::fiber c = std::move( cb->c);
// destroy control structure
cb->~control_block();
// destroy coroutine's stack
cb->state |= state_t::destroy;
// destroy control structure
cb->~control_block();
}

template< typename StackAllocator, typename Fn >
Expand Down
12 changes: 6 additions & 6 deletions include/boost/coroutine2/detail/push_control_block_cc.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ template< typename T >
void
push_coroutine< T >::control_block::destroy( control_block * cb) noexcept {
boost::context::fiber c = std::move( cb->c);
// destroy control structure
cb->~control_block();
// destroy coroutine's stack
cb->state |= state_t::destroy;
// destroy control structure
cb->~control_block();
}

template< typename T >
Expand Down Expand Up @@ -165,10 +165,10 @@ template< typename T >
void
push_coroutine< T & >::control_block::destroy( control_block * cb) noexcept {
boost::context::fiber c = std::move( cb->c);
// destroy control structure
cb->~control_block();
// destroy coroutine's stack
cb->state |= state_t::destroy;
// destroy control structure
cb->~control_block();
}

template< typename T >
Expand Down Expand Up @@ -285,10 +285,10 @@ inline
void
push_coroutine< void >::control_block::destroy( control_block * cb) noexcept {
boost::context::fiber c = std::move( cb->c);
// destroy control structure
cb->~control_block();
// destroy coroutine's stack
cb->state |= state_t::destroy;
// destroy control structure
cb->~control_block();
}

template< typename StackAllocator, typename Fn >
Expand Down
Loading