Robust Distributed System Nucleus (rDSN)  ver 1.0.0
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
dsn::task_worker Class Reference
Inheritance diagram for dsn::task_worker:

Public Types

typedef task_worker *(* factory) (task_worker_pool *, task_queue *, int, task_worker *)
 

Public Member Functions

DSN_API task_worker (task_worker_pool *pool, task_queue *q, int index, task_worker *inner_provider)
 
DSN_API void start ()
 
DSN_API void stop ()
 
virtual DSN_API void loop ()
 
const std::string & name () const
 
int index () const
 
int native_tid () const
 
task_worker_pool * pool () const
 
task_queuequeue () const
 
DSN_API const threadpool_spec & pool_spec () const
 

Static Public Member Functions

template<typename T >
static task_workercreate (task_worker_pool *pool, task_queue *q, int index, task_worker *inner_provider)
 
static DSN_API task_workercurrent ()
 
static DSN_API void set_name (const char *name)
 
static DSN_API void set_priority (worker_priority_t pri)
 
static DSN_API void set_affinity (uint64_t affinity)
 

Static Public Attributes

static DSN_API join_point< void, task_worker * > on_start
 
static DSN_API join_point< void, task_worker * > on_create
 

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