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:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user