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

make fiber::detach() not inlined

This commit is contained in:
Oliver Kowalke
2013-09-13 17:38:09 +02:00
parent 32405f7a99
commit a71c8478fe
2 changed files with 16 additions and 2 deletions

View File

@@ -361,8 +361,7 @@ public:
void priority( int) BOOST_NOEXCEPT;
void detach() BOOST_NOEXCEPT
{ impl_.reset(); }
void detach() BOOST_NOEXCEPT;
void join();

View File

@@ -69,6 +69,21 @@ fiber::join()
impl_.reset();
}
void
fiber::detach() BOOST_NOEXCEPT
{
BOOST_ASSERT( impl_);
if ( ! joinable() )
{
boost::throw_exception(
fiber_resource_error(
system::errc::invalid_argument, "boost fiber: fiber not joinable") );
}
impl_.reset();
}
void
fiber::interrupt() BOOST_NOEXCEPT
{