Stxxl
1.4.0
|
#include <request_queue_impl_worker.h>
Protected Types | |
enum | thread_state { NOT_RUNNING, RUNNING, TERMINATING, TERMINATE = TERMINATING } |
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) |
Definition at line 38 of file request_queue_impl_worker.h.
typedef pthread_t stxxl::request_queue_impl_worker::thread_type [protected] |
Definition at line 46 of file request_queue_impl_worker.h.
enum stxxl::request_queue_impl_worker::thread_state [protected] |
Definition at line 41 of file request_queue_impl_worker.h.
void stxxl::request_queue_impl_worker::start_thread | ( | void *(*)(void *) | worker, |
void * | arg, | ||
thread_type & | t, | ||
state< thread_state > & | s | ||
) | [protected] |
Definition at line 25 of file request_queue_impl_worker.cpp.
References check_pthread_call, and stxxl::state< Tp >::set_to().
Referenced by stxxl::request_queue_impl_1q::request_queue_impl_1q(), and stxxl::request_queue_impl_qwqr::request_queue_impl_qwqr().
void stxxl::request_queue_impl_worker::stop_thread | ( | thread_type & | t, |
state< thread_state > & | s, | ||
semaphore & | sem | ||
) | [protected] |
Definition at line 38 of file request_queue_impl_worker.cpp.
References check_pthread_call, and stxxl::state< Tp >::set_to().
Referenced by stxxl::request_queue_impl_1q::~request_queue_impl_1q(), and stxxl::request_queue_impl_qwqr::~request_queue_impl_qwqr().