|
SimGrid
3.14.159
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 () |
Public Member Functions inherited from simgrid::kernel::context::AttachContext | |
| AttachContext (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process) | |
| ~AttachContext () override | |
Public Member Functions inherited from simgrid::kernel::context::Context | |
| 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 |
Public Attributes inherited from simgrid::kernel::context::Context | |
| 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 |