2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-10 23:32:28 +00:00

move 'fm_' - free functions into fiber_manager

This commit is contained in:
Oliver Kowalke
2015-02-08 16:02:22 +01:00
parent 5a0f9394e8
commit aa337b07f7
18 changed files with 203 additions and 259 deletions

View File

@@ -54,7 +54,7 @@ recursive_mutex::~recursive_mutex() {
void
recursive_mutex::lock() {
fiber_context * f( fm_active() );
fiber_context * f( detail::scheduler::instance()->active() );
BOOST_ASSERT( nullptr != f);
for (;;) {
std::unique_lock< detail::spinlock > lk( splk_);
@@ -68,7 +68,7 @@ recursive_mutex::lock() {
waiting_.push_back( f);
// suspend this fiber
fm_wait( lk);
detail::scheduler::instance()->wait( lk);
}
}