SimGrid  3.18
Versatile Simulation of Distributed Systems
simgrid::kernel::context::ParallelThreadContext Class Reference

#include <ContextThread.hpp>

Inheritance diagram for simgrid::kernel::context::ParallelThreadContext:
simgrid::kernel::context::ThreadContext simgrid::kernel::context::AttachContext simgrid::kernel::context::Context

Public Member Functions

 ParallelThreadContext (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process, bool maestro)
 
- Public Member Functions inherited from simgrid::kernel::context::ThreadContext
 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 ()
 

Static Public Member Functions

static void initialize ()
 
static void finalize ()
 
static void run_all ()
 

Additional Inherited Members

- Public Attributes inherited from simgrid::kernel::context::Context
bool iwannadie
 

Constructor & Destructor Documentation

◆ ParallelThreadContext()

simgrid::kernel::context::ParallelThreadContext::ParallelThreadContext ( std::function< void()>  code,
void_pfn_smxprocess_t  cleanup_func,
smx_actor_t  process,
bool  maestro 
)
inline

Member Function Documentation

◆ initialize()

void simgrid::kernel::context::ParallelThreadContext::initialize ( )
static

◆ finalize()

void simgrid::kernel::context::ParallelThreadContext::finalize ( )
static

◆ run_all()

void simgrid::kernel::context::ParallelThreadContext::run_all ( )
static

The documentation for this class was generated from the following files: