2
0
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:
Oliver Kowalke
2015-09-19 17:01:20 +02:00
parent 943e21e69b
commit 3f5e076f3a
9 changed files with 836 additions and 9 deletions

View File

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