2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-17 13:42:21 +00:00

uses intrusive::list<> isntread hand-written queues

This commit is contained in:
Oliver Kowalke
2015-09-09 19:22:54 +02:00
parent e4fc7e7736
commit c89410dfd8
27 changed files with 334 additions and 619 deletions

View File

@@ -10,6 +10,7 @@
#include "boost/fiber/exceptions.hpp"
#include "boost/fiber/fiber.hpp"
#include "boost/fiber/properties.hpp"
#include "boost/fiber/scheduler.hpp"
#ifdef BOOST_HAS_ABI_HEADERS
# include BOOST_ABI_PREFIX
@@ -144,6 +145,15 @@ context::set_properties( fiber_properties * props) {
properties_ = props;
}
bool
context::do_wait_until_( std::chrono::steady_clock::time_point const& time_point,
detail::spinlock_lock & lk) {
BOOST_ASSERT( nullptr != scheduler_);
BOOST_ASSERT( this == active_);
return scheduler_->wait_until( this, time_point, lk);
}
void
context::do_spawn( fiber const& f) {
BOOST_ASSERT( nullptr != scheduler_);