- return this->new_context<ParallelBoostContext>(std::move(code), cleanup_func, process);
- return this->new_context<BoostContext>(std::move(code), cleanup_func, process);
-}
-
-void BoostContextFactory::run_all()
-{
- if (parallel_)
- ParallelBoostContext::run_all();
- else
- SwappedContext::run_all();
+ return this->new_context<ParallelBoostContext>(std::move(code), cleanup_func, process, this);
+ return this->new_context<BoostContext>(std::move(code), cleanup_func, process, this);