SimGrid
3.13
Versatile Simulation of Distributed Systems
|
#include <ThreadContext.hpp>
Public Member Functions | |
ThreadContext (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_process_t process, bool maestro=false) | |
~ThreadContext () | |
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_process_t process) | |
~AttachContext () | |
![]() | |
Context (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_process_t process) | |
void | operator() () |
bool | has_code () const |
smx_process_t | process () |
void | set_cleanup (void_pfn_smxprocess_t cleanup) |
virtual | ~Context () |
Public Attributes | |
friend | ThreadContextFactory |
![]() | |
bool | iwannadie |
simgrid::simix::ThreadContext::ThreadContext | ( | std::function< void()> | code, |
void_pfn_smxprocess_t | cleanup_func, | ||
smx_process_t | process, | ||
bool | maestro = false |
||
) |
simgrid::simix::ThreadContext::~ThreadContext | ( | ) |
|
overridevirtual |
Reimplemented from simgrid::simix::Context.
|
overridevirtual |
Implements simgrid::simix::Context.
|
overridevirtual |
Called by the context when it is ready to give control to the maestro.
Implements simgrid::simix::AttachContext.
|
overridevirtual |
Called by the context when it has finished its job.
Implements simgrid::simix::AttachContext.
void simgrid::simix::ThreadContext::start | ( | ) |
friend simgrid::simix::ThreadContext::ThreadContextFactory |