SimGrid  3.14.159
Versatile Simulation of Distributed Systems
simgrid::kernel::context::UContext Class Reference
Inheritance diagram for simgrid::kernel::context::UContext:
simgrid::kernel::context::Context simgrid::kernel::context::ParallelUContext simgrid::kernel::context::SerialUContext

Public Member Functions

 UContext (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process)
 
 ~UContext () 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 ()
 
virtual void stop ()
 
virtual void suspend ()=0
 

Public Attributes

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

Protected Attributes

ucontext_t uc_
 
char * stack_ = nullptr
 

Constructor & Destructor Documentation

◆ UContext()

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

◆ ~UContext()

simgrid::kernel::context::UContext::~UContext ( )
override

Member Data Documentation

◆ uc_

ucontext_t simgrid::kernel::context::UContext::uc_
protected

◆ stack_

char* simgrid::kernel::context::UContext::stack_ = nullptr
protected

◆ UContextFactory

friend simgrid::kernel::context::UContext::UContextFactory

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