SimGrid  3.16
Versatile Simulation of Distributed Systems
simgrid::kernel::context::Context Class Referenceabstract

#include <Context.hpp>

Inheritance diagram for simgrid::kernel::context::Context:
simgrid::kernel::context::AttachContext simgrid::kernel::context::BoostContext simgrid::kernel::context::RawContext simgrid::kernel::context::UContext simgrid::kernel::context::ThreadContext simgrid::kernel::context::BoostSerialContext simgrid::kernel::context::ParallelUContext simgrid::kernel::context::SerialUContext

Public Member Functions

 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
 

Public Attributes

bool iwannadie
 

Constructor & Destructor Documentation

◆ Context()

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

◆ ~Context()

simgrid::kernel::context::Context::~Context ( )
virtualdefault

Member Function Documentation

◆ operator()()

void simgrid::kernel::context::Context::operator() ( )
inline

◆ has_code()

bool simgrid::kernel::context::Context::has_code ( ) const
inline

◆ process()

smx_actor_t simgrid::kernel::context::Context::process ( )
inline

◆ set_cleanup()

void simgrid::kernel::context::Context::set_cleanup ( void_pfn_smxprocess_t  cleanup)
inline

◆ stop()

◆ suspend()

Member Data Documentation

◆ iwannadie

bool simgrid::kernel::context::Context::iwannadie

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