Data Structures | |
| struct | gearmand_thread_st |
Modules | |
| Private Gearmand Thread Functions | |
Functions | |
| gearman_return_t | gearmand_thread_create (gearmand_st *gearmand) |
| void | gearmand_thread_free (gearmand_thread_st *thread) |
| void | gearmand_thread_wakeup (gearmand_thread_st *thread, gearmand_wakeup_t wakeup) |
| void | gearmand_thread_run (gearmand_thread_st *thread) |
Thread handling for gearmand.
| gearman_return_t gearmand_thread_create | ( | gearmand_st * | gearmand | ) |
Create a new gearmand thread.
| gearmand | Server instance structure previously initialized with gearmand_create. |
Definition at line 43 of file gearmand_thread.c.
| void gearmand_thread_free | ( | gearmand_thread_st * | thread | ) |
Free resources used by a thread.
| thread | Thread previously initialized with gearmand_thread_create. |
Definition at line 141 of file gearmand_thread.c.
| void gearmand_thread_wakeup | ( | gearmand_thread_st * | thread, |
| gearmand_wakeup_t | wakeup | ||
| ) |
Interrupt a running gearmand thread.
| thread | Thread structure previously initialized with gearmand_thread_create. |
| wakeup | Wakeup event to send to running thread. |
Definition at line 191 of file gearmand_thread.c.
| void gearmand_thread_run | ( | gearmand_thread_st * | thread | ) |
Run the thread when there are events ready.
| thread | Thread structure previously initialized with gearmand_thread_create. |
Definition at line 202 of file gearmand_thread.c.
1.7.4