From bf0ea3749bc465c080744d418f4901da863fb6c2 Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Fri, 18 Sep 2015 17:31:45 +0200 Subject: [PATCH] add TODO comments --- src/context.cpp | 2 ++ src/fiber.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/context.cpp b/src/context.cpp index 276e4ad1..08318ef6 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -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 diff --git a/src/fiber.cpp b/src/fiber.cpp index 6b5c599e..1f1991a5 100644 --- a/src/fiber.cpp +++ b/src/fiber.cpp @@ -42,7 +42,7 @@ fiber::join() { tmp->join(); - // FIXME: call interruption_point() + // TODO: call interruption_point() } }}