Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
#include <threadpool.h>
Data Fields | |
void(* | emptied )(struct ast_threadpool *pool, struct ast_threadpool_listener *listener) |
Indicates the threadpool's taskprocessor has become empty. More... | |
void(* | shutdown )(struct ast_threadpool_listener *listener) |
The threadpool is shutting down. More... | |
void(* | state_changed )(struct ast_threadpool *pool, struct ast_threadpool_listener *listener, int active_threads, int idle_threads) |
Indicates that the state of threads in the pool has changed. More... | |
void(* | task_pushed )(struct ast_threadpool *pool, struct ast_threadpool_listener *listener, int was_empty) |
Indicates that a task was pushed to the threadpool. More... | |
Definition at line 27 of file threadpool.h.
void(* emptied) (struct ast_threadpool *pool, struct ast_threadpool_listener *listener) |
Indicates the threadpool's taskprocessor has become empty.
pool | The pool that has become empty |
listener | The threadpool's listener |
Definition at line 56 of file threadpool.h.
Referenced by queued_emptied(), and threadpool_tps_emptied().
void(* shutdown) (struct ast_threadpool_listener *listener) |
The threadpool is shutting down.
This would be an opportune time to free the listener's user data if one wishes. However, it is acceptable to not do so if the user data should persist beyond the lifetime of the pool.
listener | The threadpool's listener |
Definition at line 67 of file threadpool.h.
Referenced by threadpool_tps_shutdown().
void(* state_changed) (struct ast_threadpool *pool, struct ast_threadpool_listener *listener, int active_threads, int idle_threads) |
Indicates that the state of threads in the pool has changed.
pool | The pool whose state has changed |
listener | The threadpool listener |
active_threads | The number of active threads in the pool |
idle_threads | The number of idle threads in the pool |
Definition at line 36 of file threadpool.h.
Referenced by threadpool_send_state_changed().
void(* task_pushed) (struct ast_threadpool *pool, struct ast_threadpool_listener *listener, int was_empty) |
Indicates that a task was pushed to the threadpool.
pool | The pool that had a task pushed |
listener | The threadpool listener |
was_empty | Indicates whether there were any tasks prior to adding the new one. |
Definition at line 47 of file threadpool.h.
Referenced by queued_task_pushed().