2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-18 01:52:24 +00:00

fix using intruisve::list<>

This commit is contained in:
Oliver Kowalke
2015-09-10 18:08:10 +02:00
parent 2173200c14
commit d3843efbe0
17 changed files with 184 additions and 157 deletions

View File

@@ -41,7 +41,7 @@ context::active( context * active) noexcept {
}
context::~context() {
BOOST_ASSERT( waiting_.empty() );
BOOST_ASSERT( wait_queue_.empty() );
delete properties_;
}
@@ -53,7 +53,7 @@ context::release() {
// get all waiting fibers
splk_.lock();
waiting.swap( waiting_);
waiting.swap( wait_queue_);
splk_.unlock();
// notify all waiting fibers
@@ -78,7 +78,7 @@ context::join( context * f) {
if ( is_terminated() ) {
return false;
}
waiting_.push_back( f);
wait_queue_.push_back( f);
return true;
}