class SwappedContextFactory : public ContextFactory {
friend SwappedContext; // Reads whether we are in parallel mode
public:
- SwappedContextFactory(std::string name);
+ explicit SwappedContextFactory(std::string name);
~SwappedContextFactory() override;
void run_all() override;
virtual void swap_into(SwappedContext* to) = 0; // Defined in Raw, Boost and UContext subclasses
- void set_maestro(SwappedContext* ctx) { factory_->workers_context_[0] = ctx; }
+ void set_maestro(SwappedContext* ctx);
// FIXME: Killme
static thread_local uintptr_t worker_id_;