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:
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user