mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-17 13:42:21 +00:00
class mutex added
This commit is contained in:
@@ -50,11 +50,6 @@ context::set_terminated_() noexcept {
|
||||
scheduler_->set_terminated( this);
|
||||
}
|
||||
|
||||
void
|
||||
context::suspend_() noexcept {
|
||||
scheduler_->re_schedule( this);
|
||||
}
|
||||
|
||||
// main fiber context
|
||||
context::context( main_context_t) :
|
||||
ready_hook_(),
|
||||
@@ -117,6 +112,11 @@ context::resume() {
|
||||
ctx_();
|
||||
}
|
||||
|
||||
void
|
||||
context::suspend() noexcept {
|
||||
scheduler_->re_schedule( this);
|
||||
}
|
||||
|
||||
void
|
||||
context::release() noexcept {
|
||||
BOOST_ASSERT( is_terminated() );
|
||||
@@ -183,7 +183,7 @@ context::set_ready( context * ctx) noexcept {
|
||||
scheduler_->set_ready( ctx);
|
||||
} else {
|
||||
// remote
|
||||
scheduler_->set_remote_ready( ctx);
|
||||
ctx->scheduler_->set_remote_ready( ctx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user