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

#include <daemons.h>

Inheritance diagram for abort_smt_t:
thread_t thread_wrapper_t

Public Member Functions

 abort_smt_t (std::string tname, ShoreEnv *env, vector< xct_t *> &toabort)
 
 ~abort_smt_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 ()
 

Public Attributes

vector< xct_t * > * _toabort
 
uint _aborted
 

Private Attributes

ShoreEnv_env
 

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

§ abort_smt_t()

abort_smt_t::abort_smt_t ( std::string  tname,
ShoreEnv env,
vector< xct_t *> &  toabort 
)

§ ~abort_smt_t()

abort_smt_t::~abort_smt_t ( )

Member Function Documentation

§ work()

void abort_smt_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

§ _aborted

uint abort_smt_t::_aborted

§ _env

ShoreEnv* abort_smt_t::_env
private

§ _toabort

vector<xct_t*>* abort_smt_t::_toabort

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