Zero  0.1.0
Public Member Functions | Private Attributes | List of all members
crasher_t Class Reference

#include <daemons.h>

Inheritance diagram for crasher_t:
thread_t thread_wrapper_t

Public Member Functions

 crasher_t (int t)
 
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 ()
 

Private Attributes

int _timeout
 

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

§ crasher_t()

crasher_t::crasher_t ( int  t)
inline

Member Function Documentation

§ work()

void crasher_t::work ( )
virtual

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.

Member Data Documentation

§ _timeout

int crasher_t::_timeout
private

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