Asterisk - The Open Source Telephony Project  21.4.1
Data Structures | Data Fields
ast_taskprocessor Struct Reference

A ast_taskprocessor structure is a singleton by name. More...

Data Structures

struct  tps_queue
 Taskprocessor queue. More...
 

Data Fields

unsigned int executing:1
 
unsigned int high_water_alert:1
 
unsigned int high_water_warned:1
 
struct ast_taskprocessor_listenerlistener
 
void * local_data
 
char name [0]
 Friendly name of the taskprocessor. Subsystem is appended after the name's NULL terminator.
 
struct tps_taskprocessor_stats stats
 Taskprocessor statistics.
 
char * subsystem
 Anything before the first '/' in the name (if there is one)
 
unsigned int suspended:1
 
pthread_t thread
 
struct ast_taskprocessor::tps_queue tps_queue
 
long tps_queue_high
 Taskprocessor high water alert trigger level.
 
long tps_queue_low
 Taskprocessor low water clear alert level.
 
long tps_queue_size
 Taskprocessor current queue size.
 

Detailed Description

A ast_taskprocessor structure is a singleton by name.

Definition at line 69 of file taskprocessor.c.

Field Documentation

unsigned int executing

Indicates if the taskprocessor is currently executing a task

Definition at line 85 of file taskprocessor.c.

Referenced by ast_taskprocessor_execute().

unsigned int high_water_alert

Indicates that a high water alert is active on this taskprocessor

Definition at line 89 of file taskprocessor.c.

Referenced by ast_taskprocessor_alert_set_levels().

unsigned int high_water_warned

Indicates that a high water warning has been issued on this task processor

Definition at line 87 of file taskprocessor.c.

unsigned int suspended

Indicates if the taskprocessor is currently suspended

Definition at line 91 of file taskprocessor.c.

Referenced by ast_taskprocessor_is_suspended(), ast_taskprocessor_suspend(), and ast_taskprocessor_unsuspend().

pthread_t thread

Current thread executing the tasks

Definition at line 83 of file taskprocessor.c.

Referenced by ast_taskprocessor_execute(), and ast_taskprocessor_is_task().


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