Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Structures | Data Fields
ast_taskprocessor Struct Reference

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

Collaboration diagram for ast_taskprocessor:
Collaboration graph
[legend]

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. More...
 
struct tps_taskprocessor_stats stats
 Taskprocessor statistics. More...
 
char * subsystem
 Anything before the first '/' in the name (if there is one) More...
 
unsigned int suspended:1
 
pthread_t thread
 
struct ast_taskprocessor::tps_queue tps_queue
 
long tps_queue_high
 Taskprocessor high water alert trigger level. More...
 
long tps_queue_low
 Taskprocessor low water clear alert level. More...
 
long tps_queue_size
 Taskprocessor current queue size. More...
 

Detailed Description

A ast_taskprocessor structure is a singleton by name.

Definition at line 69 of file taskprocessor.c.

Field Documentation

◆ executing

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(), and taskprocessor_push().

◆ high_water_alert

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(), taskprocessor_push(), tps_taskprocessor_dtor(), and tps_taskprocessor_pop().

◆ high_water_warned

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.

Referenced by taskprocessor_push().

◆ listener

struct ast_taskprocessor_listener* listener

◆ local_data

void* local_data

◆ name

char name[0]

◆ stats

Taskprocessor statistics.

Definition at line 71 of file taskprocessor.c.

Referenced by ast_taskprocessor_execute(), tps_report_taskprocessor_list_helper(), and tps_reset_stats().

◆ subsystem

char* subsystem

Anything before the first '/' in the name (if there is one)

Definition at line 93 of file taskprocessor.c.

Referenced by __allocate_taskprocessor(), subsystem_match(), and tps_alert_add().

◆ suspended

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

◆ thread

pthread_t thread

Current thread executing the tasks

Definition at line 83 of file taskprocessor.c.

Referenced by __allocate_taskprocessor(), ast_taskprocessor_execute(), and ast_taskprocessor_is_task().

◆ tps_queue

◆ tps_queue_high

long tps_queue_high

◆ tps_queue_low

long tps_queue_low

◆ tps_queue_size

long tps_queue_size

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