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

use the free fm_<xyz> - functions

This commit is contained in:
Oliver Kowalke
2014-06-17 11:51:14 +02:00
parent 9ff51ada50
commit 026003bb65
13 changed files with 87 additions and 99 deletions

View File

@@ -39,7 +39,7 @@ recursive_mutex::~recursive_mutex()
void
recursive_mutex::lock()
{
detail::fiber_base * n( detail::scheduler::instance()->active() );
detail::fiber_base * n( fm_active( detail::scheduler::instance() ) );
if ( 0 != n)
{
for (;;)
@@ -65,7 +65,7 @@ recursive_mutex::lock()
waiting_.push_back( n);
// suspend this fiber
detail::scheduler::instance()->wait( lk);
fm_wait( detail::scheduler::instance(), lk);
}
}
else
@@ -100,7 +100,7 @@ recursive_mutex::lock()
// wait until main-fiber gets notified
while ( ! n->is_ready() )
// run scheduler
detail::scheduler::instance()->run();
fm_run( detail::scheduler::instance() );
}
}
}