Gearman Public API Documentation

Data Structures | Functions
Thread Declarations
Gearmand Declarations

Data Structures

struct  gearmand_thread_st

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)

Detailed Description

Thread handling for gearmand.


Function Documentation

gearman_return_t gearmand_thread_create ( gearmand_st gearmand)

Create a new gearmand thread.

Parameters:
gearmandServer instance structure previously initialized with gearmand_create.
Returns:
Standard gearman return value.
void gearmand_thread_free ( gearmand_thread_st thread)

Free resources used by a thread.

Parameters:
threadThread previously initialized with gearmand_thread_create.
void gearmand_thread_wakeup ( gearmand_thread_st thread,
gearmand_wakeup_t  wakeup 
)

Interrupt a running gearmand thread.

Parameters:
threadThread structure previously initialized with gearmand_thread_create.
wakeupWakeup event to send to running thread.
void gearmand_thread_run ( gearmand_thread_st thread)

Run the thread when there are events ready.

Parameters:
threadThread structure previously initialized with gearmand_thread_create.