SimGrid
3.18
Versatile Simulation of Distributed Systems
|
Userspace context switching implementation based on Boost.Context.
#include <ContextBoost.hpp>
Public Member Functions | |
BoostContext (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process) | |
~BoostContext () override | |
void | stop () override |
virtual void | resume ()=0 |
![]() | |
Context (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process) | |
void | operator() () |
bool | has_code () const |
smx_actor_t | process () |
void | set_cleanup (void_pfn_smxprocess_t cleanup) |
virtual | ~Context () |
virtual void | suspend ()=0 |
Static Public Member Functions | |
static void | swap (BoostContext *from, BoostContext *to) |
static BoostContext * | getMaestro () |
static void | setMaestro (BoostContext *maestro) |
Additional Inherited Members | |
![]() | |
bool | iwannadie |
simgrid::kernel::context::BoostContext::BoostContext | ( | std::function< void()> | code, |
void_pfn_smxprocess_t | cleanup_func, | ||
smx_actor_t | process | ||
) |
|
override |
|
overridevirtual |
Reimplemented from simgrid::kernel::context::Context.
|
pure virtual |
Implemented in simgrid::kernel::context::SerialBoostContext.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |