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

scheduler::swap()

This commit is contained in:
Oliver Kowalke
2012-12-15 14:36:39 +01:00
parent fb79b6eccb
commit f306dcc391
3 changed files with 20 additions and 0 deletions

View File

@@ -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