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

fix context

This commit is contained in:
Oliver Kowalke
2015-09-21 20:34:41 +02:00
parent 38457260bc
commit 128b534058
3 changed files with 8 additions and 17 deletions

View File

@@ -147,13 +147,8 @@ void
context::join() {
// get active context
context * active_ctx = context::active();
try {
// context::join() is a interruption point
this_fiber::interruption_point();
} catch ( boost::fibers::fiber_interrupted const&) {
fprintf(stderr, "context::join() -> throw\n");
throw;
}
// protect for concurrent access
std::unique_lock< detail::spinlock > lk( splk_);
// wait for context which is not terminated