virtual void swap_into(SwappedContext* to) = 0; // Defined in Raw, Boost and UContext subclasses
void set_maestro(SwappedContext* ctx);
+ void* get_stack();
// FIXME: Killme
static thread_local uintptr_t worker_id_;
-protected:
- void* stack_ = nullptr; /* the thread stack */
-
private:
- SwappedContextFactory* factory_; // for sequential and parallel run_all()
+ void* stack_ = nullptr; /* the thread stack */
+ SwappedContextFactory* const factory_; // for sequential and parallel run_all()
};
} // namespace context