mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-13 00:12:17 +00:00
scheduler::swap()
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
#define BOOST_FIBERS_SOURCE
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <boost/fiber/scheduler.hpp>
|
||||
|
||||
#include <boost/fiber/detail/default_scheduler.hpp>
|
||||
@@ -32,6 +34,10 @@ scheduler::instance()
|
||||
return * instance_;
|
||||
}
|
||||
|
||||
void
|
||||
scheduler::swap( scheduler * sched)
|
||||
{ std::swap( instance_, sched); }
|
||||
|
||||
}}
|
||||
|
||||
#ifdef BOOST_HAS_ABI_HEADERS
|
||||
|
||||
Reference in New Issue
Block a user