mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-10 23:32:28 +00:00
some fixes
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
|
||||
#include <boost/assert.hpp>
|
||||
|
||||
#include "boost/fiber/detail/scheduler.hpp"
|
||||
#include "boost/fiber/interruption.hpp"
|
||||
#include "boost/fiber/operations.hpp"
|
||||
|
||||
@@ -39,7 +38,7 @@ recursive_mutex::~recursive_mutex()
|
||||
void
|
||||
recursive_mutex::lock()
|
||||
{
|
||||
detail::fiber_base * n( fm_active( detail::scheduler::instance() ) );
|
||||
detail::fiber_base * n( fm_active() );
|
||||
if ( 0 != n)
|
||||
{
|
||||
for (;;)
|
||||
@@ -65,7 +64,7 @@ recursive_mutex::lock()
|
||||
waiting_.push_back( n);
|
||||
|
||||
// suspend this fiber
|
||||
fm_wait( detail::scheduler::instance(), lk);
|
||||
fm_wait( lk);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -100,7 +99,7 @@ recursive_mutex::lock()
|
||||
// wait until main-fiber gets notified
|
||||
while ( ! n->is_ready() )
|
||||
// run scheduler
|
||||
fm_run( detail::scheduler::instance() );
|
||||
fm_run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user