SimGrid  3.14.159
Versatile Simulation of Distributed Systems
simgrid::kernel::context::AttachContext Class Referenceabstract

#include <Context.hpp>

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

Public Member Functions

 AttachContext (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process)
 
 ~AttachContext () override
 
virtual void attach_start ()=0
 Called by the context when it is ready to give control to the maestro. More...
 
virtual void attach_stop ()=0
 Called by the context when it has finished its job. More...
 
- 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 ()
 
virtual void stop ()
 
virtual void suspend ()=0
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ AttachContext()

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

◆ ~AttachContext()

simgrid::kernel::context::AttachContext::~AttachContext ( )
overridedefault

Member Function Documentation

◆ attach_start()

virtual void simgrid::kernel::context::AttachContext::attach_start ( )
pure virtual

Called by the context when it is ready to give control to the maestro.

Implemented in simgrid::kernel::context::ThreadContext.

◆ attach_stop()

virtual void simgrid::kernel::context::AttachContext::attach_stop ( )
pure virtual

Called by the context when it has finished its job.

Implemented in simgrid::kernel::context::ThreadContext.


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