-class BoostContext : public Context {
-protected: // static
- static bool parallel_;
- static simgrid::xbt::Parmap<smx_actor_t>* parmap_;
- static std::vector<BoostContext*> workers_context_;
- static uintptr_t threads_working_;
- static xbt_os_thread_key_t worker_id_key_;
- static unsigned long process_index_;
- static BoostContext* maestro_context_;
+class BoostContext : public SwappedContext {
+public:
+ BoostContext(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t actor,
+ SwappedContextFactory* factory);
+ ~BoostContext() override;