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