Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Fields
tps_task Struct Reference

tps_task structure is queued to a taskprocessor More...

Collaboration diagram for tps_task:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Field Documentation

◆ 

union { ... } callback

The execute() task callback function pointer.

Referenced by ast_taskprocessor_execute(), tps_task_alloc(), and tps_task_alloc_local().

◆ datap

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().

◆ execute

int(* execute) (void *datap)

Definition at line 50 of file taskprocessor.c.

Referenced by ast_taskprocessor_execute(), and tps_task_alloc().

◆ execute_local

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().

◆ next

struct tps_task* next

Definition at line 56 of file taskprocessor.c.

◆ wants_local

unsigned int wants_local

Definition at line 57 of file taskprocessor.c.

Referenced by ast_taskprocessor_execute(), and tps_task_alloc_local().


The documentation for this struct was generated from the following file: