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