2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-12 12:02:54 +00:00

fiber_context renamed to context

This commit is contained in:
Oliver Kowalke
2015-09-07 17:23:59 +02:00
parent 7f97616aa2
commit 6499bb07e7
41 changed files with 425 additions and 424 deletions

View File

@@ -6,7 +6,7 @@
#include "boost/fiber/condition.hpp"
#include "boost/fiber/fiber_context.hpp"
#include "boost/fiber/context.hpp"
#ifdef BOOST_HAS_ABI_HEADERS
# include BOOST_ABI_PREFIX
@@ -26,7 +26,7 @@ condition::~condition() {
void
condition::notify_one() {
fiber_context * f( nullptr);
context * f( nullptr);
detail::spinlock_lock lk( splk_);
// get one waiting fiber
@@ -44,7 +44,7 @@ condition::notify_one() {
void
condition::notify_all() {
std::deque< fiber_context * > waiting;
std::deque< context * > waiting;
detail::spinlock_lock lk( splk_);
// get all waiting fibers
@@ -53,7 +53,7 @@ condition::notify_all() {
// notify all waiting fibers
while ( ! waiting.empty() ) {
fiber_context * f( waiting.front() );
context * f( waiting.front() );
waiting.pop_front();
BOOST_ASSERT( nullptr != f);
f->set_ready();