SimGrid
3.14.159
Versatile Simulation of Distributed Systems
|
#include <Context.hpp>
Public Member Functions | |
AttachContext (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process) | |
~AttachContext () override | |
virtual void | attach_start ()=0 |
Called by the context when it is ready to give control to the maestro. More... | |
virtual void | attach_stop ()=0 |
Called by the context when it has finished its job. More... | |
![]() | |
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 | stop () |
virtual void | suspend ()=0 |
Additional Inherited Members | |
![]() | |
bool | iwannadie |
|
inline |
|
overridedefault |
|
pure virtual |
Called by the context when it is ready to give control to the maestro.
Implemented in simgrid::kernel::context::ThreadContext.
|
pure virtual |
Called by the context when it has finished its job.
Implemented in simgrid::kernel::context::ThreadContext.