SimGrid  3.16
Versatile Simulation of Distributed Systems
simgrid::kernel::context::BoostSerialContext Class Reference
Inheritance diagram for simgrid::kernel::context::BoostSerialContext:
simgrid::kernel::context::BoostContext simgrid::kernel::context::Context

Public Member Functions

 BoostSerialContext (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process)
 
void stop () override
 
void suspend () override
 
- Public Member Functions inherited from simgrid::kernel::context::BoostContext
 BoostContext (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process)
 
 ~BoostContext () override
 
virtual void resume ()
 
- 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::BoostContext
friend BoostContextFactory
 
- Public Attributes inherited from simgrid::kernel::context::Context
bool iwannadie
 
- Protected Attributes inherited from simgrid::kernel::context::BoostContext
boost::context::fcontext_t fc_
 
voidstack_ = nullptr
 
- Static Protected Attributes inherited from simgrid::kernel::context::BoostContext
static bool parallel_ = false
 
static xbt_parmap_t parmap_ = nullptr
 
static std::vector< BoostContext * > workers_context_
 
static uintptr_t threads_working_ = 0
 
static xbt_os_thread_key_t worker_id_key_
 
static unsigned long process_index_ = 0
 
static BoostContextmaestro_context_ = nullptr
 

Constructor & Destructor Documentation

◆ BoostSerialContext()

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

Member Function Documentation

◆ stop()

void simgrid::kernel::context::BoostSerialContext::stop ( )
overridevirtual

Reimplemented from simgrid::kernel::context::Context.

◆ suspend()

void simgrid::kernel::context::BoostSerialContext::suspend ( )
overridevirtual

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