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

Nat's patch applied (Mac OS X related stuff)

This commit is contained in:
Oliver Kowalke
2013-09-26 19:25:24 +02:00
parent 5be0757ffd
commit 60031f8ec1
3 changed files with 18 additions and 21 deletions

View File

@@ -59,14 +59,11 @@ fiber::join()
system::errc::invalid_argument, "boost fiber: fiber not joinable") );
}
try
{ detail::scheduler::instance()->join( impl_); }
catch (...)
{
impl_.reset();
throw;
}
impl_.reset();
ptr_t impl_old;
// reset impl_ now, BEFORE calling join(), so it's reset even if join()
// throws
impl_old.swap(impl_);
detail::scheduler::instance()->join(impl_old);
}
void