#include <asyncUtility.h>
Inheritance diagram for AsyncUtility:
Public Member Functions | |
void | set_frequency (float frequency) |
Fraction of a second. | |
float | get_frequency (void) const |
void | create_thread (void) |
AsyncUtility (float frequency=0.2) | |
virtual | ~AsyncUtility (void) |
Protected Member Functions | |
void | destroy_thread (void) |
void | callback (void) |
This is the main body of the sub-thread. | |
virtual bool | process_request (void)=0 |
void | nap (void) const |
Static Protected Member Functions | |
void * | st_callback (void *arg) |
This is a static wrapper around the callback() method, below. | |
Protected Attributes | |
int | _next_token |
bool | _shutdown |
bool | _threaded |
float | _frequency |
bool | _threads_enabled |
|
Definition at line 47 of file asyncUtility.cxx. |
|
Definition at line 66 of file asyncUtility.cxx. References _threaded, _threads_enabled, create, and st_callback(). |
|
This is the main body of the sub-thread. It waits forever for a request to show up, and then serves it. Definition at line 160 of file asyncUtility.cxx. |
|
Definition at line 80 of file asyncUtility.cxx. |
|
Definition at line 99 of file asyncUtility.cxx. Referenced by Loader::Loader(). |
|
Definition at line 43 of file asyncUtility.I. |
|
Definition at line 179 of file asyncUtility.cxx. |
|
Implemented in Loader. |
|
Fraction of a second.
Definition at line 31 of file asyncUtility.I. References _frequency, and INLINE. |
|
This is a static wrapper around the callback() method, below. It's static just so we can pass it to the thread-creation function. In addition, the function has a void* return type even though we don't actually return anything. This is necessary because ipc assumes a function that does not return anything indicates that the associated thread should be created as unjoinable (detached). Definition at line 141 of file asyncUtility.cxx. Referenced by ~AsyncUtility(). |
|
Definition at line 68 of file asyncUtility.h. Referenced by set_frequency(). |
|
Definition at line 65 of file asyncUtility.h. |
|
Definition at line 66 of file asyncUtility.h. Referenced by create_thread(). |
|
Definition at line 67 of file asyncUtility.h. Referenced by create_thread(), and ~AsyncUtility(). |
|
Definition at line 69 of file asyncUtility.h. Referenced by ~AsyncUtility(). |