|
SimGrid
3.18
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) | |
| ~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... | |
| bool | isMaestro () const |
| void | release () |
| void | wait () |
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 () |
Additional Inherited Members | |
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 | ||
| ) |
|
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.
|
inline |
| void simgrid::kernel::context::ThreadContext::release | ( | ) |
| void simgrid::kernel::context::ThreadContext::wait | ( | ) |