Asterisk - The Open Source Telephony Project GIT-master-3dae2cf
|
tps_task structure is queued to a taskprocessor More...
Data Fields | |
union { | |
int(* execute )(void *datap) | |
int(* execute_local )(struct ast_taskprocessor_local *local) | |
} | callback |
The execute() task callback function pointer. More... | |
void * | datap |
The data pointer for the task execute() function. More... | |
struct { | |
struct tps_task * next | |
} | list |
AST_LIST_ENTRY overhead. More... | |
unsigned int | wants_local:1 |
tps_task structure is queued to a taskprocessor
tps_tasks are processed in FIFO order and freed by the taskprocessing thread after the task handler returns. The callback function that is assigned to the execute() function pointer is responsible for releasing datap resources if necessary.
Definition at line 47 of file taskprocessor.c.
union { ... } callback |
The execute() task callback function pointer.
Referenced by ast_taskprocessor_execute(), tps_task_alloc(), and tps_task_alloc_local().
void* datap |
The data pointer for the task execute() function.
Definition at line 54 of file taskprocessor.c.
Referenced by ast_taskprocessor_execute(), tps_task_alloc(), and tps_task_alloc_local().
int(* execute) (void *datap) |
Definition at line 50 of file taskprocessor.c.
Referenced by ast_taskprocessor_execute(), and tps_task_alloc().
int(* execute_local) (struct ast_taskprocessor_local *local) |
Definition at line 51 of file taskprocessor.c.
Referenced by ast_taskprocessor_execute(), and tps_task_alloc_local().
struct { ... } list |
AST_LIST_ENTRY overhead.
Referenced by tps_taskprocessor_dtor(), and tps_taskprocessor_pop().
struct tps_task* next |
Definition at line 56 of file taskprocessor.c.
unsigned int wants_local |
Definition at line 57 of file taskprocessor.c.
Referenced by ast_taskprocessor_execute(), and tps_task_alloc_local().