SimGrid
3.16
Versatile Simulation of Distributed Systems
|
#include <ContextThread.hpp>
Public Member Functions | |
ThreadContext (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process, bool maestro=false) | |
~ThreadContext () override | |
void | stop () override |
void | suspend () override |
void | attach_start () override |
Called by the context when it is ready to give control to the maestro. More... | |
void | attach_stop () override |
Called by the context when it has finished its job. More... | |
void | start () |
![]() | |
AttachContext (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process) | |
~AttachContext () override | |
![]() | |
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 () |
Public Attributes | |
friend | ThreadContextFactory |
![]() | |
bool | iwannadie |
simgrid::kernel::context::ThreadContext::ThreadContext | ( | std::function< void()> | code, |
void_pfn_smxprocess_t | cleanup_func, | ||
smx_actor_t | process, | ||
bool | maestro = false |
||
) |
|
override |
|
overridevirtual |
Reimplemented from simgrid::kernel::context::Context.
|
overridevirtual |
Implements simgrid::kernel::context::Context.
|
overridevirtual |
Called by the context when it is ready to give control to the maestro.
Implements simgrid::kernel::context::AttachContext.
|
overridevirtual |
Called by the context when it has finished its job.
Implements simgrid::kernel::context::AttachContext.
void simgrid::kernel::context::ThreadContext::start | ( | ) |
friend simgrid::kernel::context::ThreadContext::ThreadContextFactory |