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

some fixes

This commit is contained in:
Oliver Kowalke
2014-06-22 19:31:58 +02:00
parent dabcd39066
commit 91ccc91ee7
15 changed files with 186 additions and 167 deletions

View File

@@ -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();
}
}
}