Zero  0.1.0
Public Member Functions | Private Attributes | List of all members
ycsb::table_builder_t Class Reference
Inheritance diagram for ycsb::table_builder_t:
thread_t thread_wrapper_t

Public Member Functions

 table_builder_t (ShoreYCSBEnv *env, int id, uint64_t start, unsigned count)
 
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 ()
 

Private Attributes

ShoreYCSBEnv_env
 
uint64_t _start
 
unsigned _count
 
int _id
 

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

§ table_builder_t()

ycsb::table_builder_t::table_builder_t ( ShoreYCSBEnv env,
int  id,
uint64_t  start,
unsigned  count 
)
inline

Member Function Documentation

§ work()

virtual void ycsb::table_builder_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.

Member Data Documentation

§ _count

unsigned ycsb::table_builder_t::_count
private

§ _env

ShoreYCSBEnv* ycsb::table_builder_t::_env
private

§ _id

int ycsb::table_builder_t::_id
private

§ _start

uint64_t ycsb::table_builder_t::_start
private

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