2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-12 12:02:54 +00:00

fix scheduler::instance()

This commit is contained in:
Oliver Kowalke
2013-11-04 22:10:43 +01:00
parent 2e1fd67707
commit f3d33345a0
2 changed files with 2 additions and 8 deletions

View File

@@ -36,7 +36,8 @@ public:
static fiber_base::ptr_t extract( F const& f)
{ return f.impl_; }
static algorithm * instance() BOOST_NOEXCEPT;
static algorithm * instance() BOOST_NOEXCEPT
{ return instance_.get(); }
static algorithm * replace( algorithm * other) BOOST_NOEXCEPT;
};

View File

@@ -19,13 +19,6 @@ static void cleanup_function( algorithm *) {}
thread_specific_ptr< algorithm > scheduler::instance_( cleanup_function);
algorithm *
scheduler::instance() BOOST_NOEXCEPT
{
BOOST_ASSERT( instance_.get() );
return instance_.get();
}
algorithm *
scheduler::replace( algorithm * other) BOOST_NOEXCEPT
{