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:
@@ -361,8 +361,7 @@ public:
|
||||
|
||||
void priority( int) BOOST_NOEXCEPT;
|
||||
|
||||
void detach() BOOST_NOEXCEPT
|
||||
{ impl_.reset(); }
|
||||
void detach() BOOST_NOEXCEPT;
|
||||
|
||||
void join();
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user