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

set active context to nullptr in ~scheduler()

This commit is contained in:
Oliver Kowalke
2015-09-30 19:58:04 +02:00
parent 275ae3b981
commit 20196fcd69
3 changed files with 9 additions and 0 deletions

View File

@@ -44,6 +44,11 @@ context::active( context * active) noexcept {
active_ = active;
}
void
context::reset_active() noexcept {
active_ = nullptr;
}
void
context::set_terminated_() noexcept {
// protect for concurrent access