Gearmand Threads
Detailed Description
Thread handling for gearmand.
Enumeration Type Documentation
Options for gearmand_thread_st.
- Enumerator:
GEARMAND_THREAD_WAKEUP_EVENT |
|
GEARMAND_THREAD_LOCK |
|
Definition at line 157 of file constants.h.
Function Documentation
Create a new gearmand thread.
- Parameters:
-
| gearmand | Server instance structure previously initialized with gearmand_create. |
- Returns:
- Standard gearman return value.
Free resources used by a thread.
- Parameters:
-
| thread | Thread previously initialized with gearmand_thread_create. |
Interrupt a running gearmand thread.
- Parameters:
-
| thread | Thread structure previously initialized with gearmand_thread_create. |
| wakeup | Wakeup event to send to running thread. |
Run the thread when there are events ready.
- Parameters:
-
| thread | Thread structure previously initialized with gearmand_thread_create. |