2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-16 13:22:17 +00:00

reminder/comment in scheduler

This commit is contained in:
Oliver Kowalke
2015-09-19 16:14:06 +02:00
parent a89f4a5979
commit 4e1e9fc240

View File

@@ -27,6 +27,7 @@ fiber::start_() {
void
fiber::join() {
// FIXME: must fiber::join() be synchronized?
if ( context::active()->get_id() == get_id() ) {
throw fiber_resource_error( static_cast< int >( std::errc::resource_deadlock_would_occur),
"boost fiber: trying to join itself");