STXXL  1.4-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::request_queue_impl_worker Class Reference

Detailed Description

Implementation of request queue worker threads. Worker threads can be started by start_thread and stopped with stop_thread. The queue state is checked before termination and updated afterwards.

Definition at line 43 of file request_queue_impl_worker.h.

+ Inheritance diagram for stxxl::request_queue_impl_worker:
+ Collaboration diagram for stxxl::request_queue_impl_worker:

Protected Types

enum  thread_state { NOT_RUNNING, RUNNING, TERMINATING, TERMINATED }
 
typedef pthread_t thread_type
 

Protected Member Functions

void start_thread (void *(*worker)(void *), void *arg, thread_type &t, state< thread_state > &s)
 
void stop_thread (thread_type &t, state< thread_state > &s, semaphore &sem)
 

Additional Inherited Members

- Public Types inherited from stxxl::request_queue
enum  priority_op { READ, WRITE, NONE }
 
- Public Member Functions inherited from stxxl::request_queue
virtual ~request_queue () noexcept(false)
 
virtual void add_request (request_ptr &req)=0
 
virtual bool cancel_request (request_ptr &req)=0
 
virtual void set_priority_op (priority_op p)
 

Member Typedef Documentation

typedef pthread_t stxxl::request_queue_impl_worker::thread_type
protected

Definition at line 53 of file request_queue_impl_worker.h.

Member Enumeration Documentation

Enumerator
NOT_RUNNING 
RUNNING 
TERMINATING 
TERMINATED 

Definition at line 46 of file request_queue_impl_worker.h.

Member Function Documentation

void stxxl::request_queue_impl_worker::start_thread ( void *(*)(void *)  worker,
void *  arg,
thread_type t,
state< thread_state > &  s 
)
protected

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