Asterisk - The Open Source Telephony Project GIT-master-77d630f
Data Fields
ast_taskpool Struct Reference

An opaque taskpool structure. More...

Collaboration diagram for ast_taskpool:
Collaboration graph
[legend]

Data Fields

struct taskpool_taskprocessors dynamic_taskprocessors
 
char name [0]
 
struct ast_taskpool_options options
 
taskpool_selector selector
 
int shrink_sched_id
 
int shutting_down
 
struct taskpool_taskprocessors static_taskprocessors
 

Detailed Description

An opaque taskpool structure.

A taskpool is a collection of taskprocessors that execute tasks, each from their own queue. A selector determines which taskprocessor to queue to at push time.

Definition at line 62 of file taskpool.c.

Field Documentation

◆ dynamic_taskprocessors

struct taskpool_taskprocessors dynamic_taskprocessors

The dynamic taskprocessors, those which will be created as needed

Definition at line 66 of file taskpool.c.

Referenced by ast_taskpool_create(), ast_taskpool_push(), ast_taskpool_queue_size(), ast_taskpool_shutdown(), ast_taskpool_taskprocessors_count(), taskpool_dynamic_pool_grow(), and taskpool_dynamic_pool_shrink().

◆ name

char name[0]

◆ options

struct ast_taskpool_options options

◆ selector

The taskprocessor selector to use

Definition at line 74 of file taskpool.c.

Referenced by ast_taskpool_create(), and ast_taskpool_push().

◆ shrink_sched_id

int shrink_sched_id

Dynamic pool shrinking scheduled item

Definition at line 72 of file taskpool.c.

Referenced by ast_taskpool_create(), and ast_taskpool_shutdown().

◆ shutting_down

int shutting_down

True if the taskpool is in the process of shutting down

Definition at line 68 of file taskpool.c.

Referenced by ast_taskpool_push(), ast_taskpool_shutdown(), and taskpool_dynamic_pool_shrink().

◆ static_taskprocessors

struct taskpool_taskprocessors static_taskprocessors

The static taskprocessors, those which will always exist

Definition at line 64 of file taskpool.c.

Referenced by ast_taskpool_create(), ast_taskpool_push(), ast_taskpool_queue_size(), ast_taskpool_shutdown(), ast_taskpool_taskprocessors_count(), and taskpool_dynamic_pool_grow().


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