scalestack::event::libevent::thread Class Reference
#include <thread.h>
Detailed Description
Definition at line 50 of file thread.h.
Member Typedef Documentation
Constructor & Destructor Documentation
| scalestack::event::libevent::thread::thread |
( |
kernel::module & |
module, |
|
|
size_t |
thread_index | |
|
) |
| | |
Constructor for event threads.
- Parameters:
-
| [in] | module | Module that the handler service is associated with. |
| [in] | thread_index | The 0-based index for this thread. |
Definition at line 61 of file thread.cc.
| scalestack::event::libevent::thread::~thread |
( |
|
) |
[virtual] |
| scalestack::event::libevent::thread::thread |
( |
const thread & |
|
) |
[private] |
Don't allow copying of objects.
Member Function Documentation
| void scalestack::event::libevent::thread::shutdown |
( |
void |
|
) |
|
Notify a thread to shutdown. This is called by the service provider class for each thread before deleting the threads. This allows all threads to be notified to stop before any cleanup is attempted.
Definition at line 114 of file thread.cc.
| void scalestack::event::libevent::thread::check_handler_provider |
( |
handler_provider * |
handler_provider |
) |
|
Queue a handler provider to be checked on this thread.
- Parameters:
-
Definition at line 121 of file thread.cc.
| struct event_base * scalestack::event::libevent::thread::get_event_base |
( |
void |
|
) |
[read] |
Get the event base struct. This is used by handler providers once they are added to this thread.
Definition at line 133 of file thread.cc.
| struct timeval & scalestack::event::libevent::thread::get_now |
( |
void |
|
) |
[read] |
Get a cached time structure.
Definition at line 138 of file thread.cc.
| thread& scalestack::event::libevent::thread::operator= |
( |
const thread & |
|
) |
[private] |
Don't allow assignment of objects.
| void scalestack::event::libevent::thread::run |
( |
void |
|
) |
[private, virtual] |
| void scalestack::event::libevent::thread::_add_notify_pipe |
( |
void |
|
) |
[private] |
Start the notify pipe.
Definition at line 159 of file thread.cc.
| void scalestack::event::libevent::thread::_remove_notify_pipe |
( |
void |
|
) |
[private] |
Stop the notify pipe.
Definition at line 200 of file thread.cc.
| void scalestack::event::libevent::thread::_send_notify |
( |
void |
|
) |
[private] |
Send a notify to run and process events.
Definition at line 206 of file thread.cc.
| void scalestack::event::libevent::thread::_handle_notify |
( |
int |
file_descriptor, |
|
|
short |
events | |
|
) |
| | [private] |
Handle a notify event.
Definition at line 212 of file thread.cc.
Friends And Related Function Documentation
| void thread_handle_notify |
( |
int |
file_descriptor, |
|
|
short |
events, |
|
|
void * |
context | |
|
) |
| | [friend] |
Field Documentation
The documentation for this class was generated from the following files: