SimGrid  3.14.159
Versatile Simulation of Distributed Systems
simgrid::kernel::context::ThreadContextFactory Class Reference

#include <ContextThread.hpp>

Inheritance diagram for simgrid::kernel::context::ThreadContextFactory:
simgrid::kernel::context::ContextFactory

Public Member Functions

 ThreadContextFactory ()
 
 ~ThreadContextFactory () override
 
ThreadContextcreate_context (std::function< void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process) override
 
void run_all () override
 
ThreadContextself () override
 
ThreadContextattach (void_pfn_smxprocess_t cleanup_func, smx_actor_t process) override
 Creates a context from the current context of execution. More...
 
ThreadContextcreate_maestro (std::function< void()> code, smx_actor_t process) override
 
- Public Member Functions inherited from simgrid::kernel::context::ContextFactory
 ContextFactory (std::string name)
 
virtual ~ContextFactory ()
 
std::string const & name () const
 

Additional Inherited Members

- Protected Member Functions inherited from simgrid::kernel::context::ContextFactory
template<class T , class... Args>
T * new_context (Args &&... args)
 

Constructor & Destructor Documentation

§ ThreadContextFactory()

simgrid::kernel::context::ThreadContextFactory::ThreadContextFactory ( )

§ ~ThreadContextFactory()

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

Member Function Documentation

§ create_context()

ThreadContext * simgrid::kernel::context::ThreadContextFactory::create_context ( std::function< void()>  code,
void_pfn_smxprocess_t  cleanup_func,
smx_actor_t  process 
)
overridevirtual

§ run_all()

void simgrid::kernel::context::ThreadContextFactory::run_all ( )
overridevirtual

§ self()

ThreadContext * simgrid::kernel::context::ThreadContextFactory::self ( )
overridevirtual

§ attach()

ThreadContext * simgrid::kernel::context::ThreadContextFactory::attach ( void_pfn_smxprocess_t  cleanup_func,
smx_actor_t  process 
)
overridevirtual

Creates a context from the current context of execution.

This will not work on all implementation of ContextFactory.

Reimplemented from simgrid::kernel::context::ContextFactory.

§ create_maestro()

ThreadContext * simgrid::kernel::context::ThreadContextFactory::create_maestro ( std::function< void()>  code,
smx_actor_t  process 
)
overridevirtual

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