2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-18 01:52:24 +00:00

add TODO comments

This commit is contained in:
Oliver Kowalke
2015-09-18 17:31:45 +02:00
parent a8d426cc5f
commit bf0ea3749b
2 changed files with 3 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ context::active( context * active) noexcept {
void
context::set_terminated_() noexcept {
// TODO: protect for concurrent access
flags_ |= flag_terminated;
scheduler_->set_terminated( this);
}
@@ -128,6 +129,7 @@ context::release() noexcept {
void
context::join() noexcept {
// TODO: protect for concurrent access
// wait for context which is not terminated
if ( 0 == ( flags_ & flag_terminated) ) {
// get active context