Zero  0.1.0
Public Member Functions | List of all members
root_thread_t Class Reference
Inheritance diagram for root_thread_t:
thread_t thread_wrapper_t

Public Member Functions

 root_thread_t (const std::string &name)
 
virtual void work ()
 
- Public Member Functions inherited from thread_t
bool delete_me ()
 
std::string thread_name ()
 
randgen_trandgen ()
 Returns pointer to thread_t's randgen_t object. More...
 
int rand ()
 Returns a pseudo-random integer between 0 and RAND_MAX. More...
 
int rand (int n)
 
virtual ~thread_t ()
 
- Public Member Functions inherited from thread_wrapper_t
 thread_wrapper_t ()
 
virtual ~thread_wrapper_t ()
 
virtual void before_run ()
 
virtual void after_run ()
 
void spawn ()
 
void fork ()
 
void join ()
 

Additional Inherited Members

- Protected Member Functions inherited from thread_t
 thread_t (const std::string &name)
 
- Protected Attributes inherited from thread_t
bool _delete_me
 

Constructor & Destructor Documentation

§ root_thread_t()

root_thread_t::root_thread_t ( const std::string &  name)
inline

Member Function Documentation

§ work()

virtual void root_thread_t::work ( )
inlinevirtual

The previously used run() is already used by smthread core. Thus, run() now does the thread_t specific setup and calls work(). That is, work() is the new entry function for thread_t instead of run().

Implements thread_t.


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