Asterisk - The Open Source Telephony Project GIT-master-3dae2cf
Data Fields
ast_sched_context Struct Reference
Collaboration diagram for ast_sched_context:
Collaboration graph
[legend]

Data Fields

struct schedcurrently_executing
 
unsigned int eventcnt
 
pthread_t executing_thread_id
 
unsigned int highwater
 
struct {
   struct sched_id *   first
 
   struct sched_id *   last
 
id_queue
 
int id_queue_size
 
ast_mutex_t lock
 
struct ast_heapsched_heap
 
struct sched_threadsched_thread
 
struct {
   struct sched *   first
 
   struct sched *   last
 
schedc
 
unsigned int schedccnt
 
unsigned int tie_breaker
 

Detailed Description

Definition at line 111 of file sched.c.

Field Documentation

◆ currently_executing

struct sched* currently_executing

The scheduled task that is currently executing

Definition at line 120 of file sched.c.

Referenced by ast_sched_del_nonrunning(), and ast_sched_runq().

◆ eventcnt

unsigned int eventcnt

Number of events processed

Definition at line 113 of file sched.c.

Referenced by ast_sched_add_variable(), and ast_sched_dump().

◆ executing_thread_id

pthread_t executing_thread_id

Valid while currently_executing is not NULL

Definition at line 122 of file sched.c.

Referenced by ast_sched_del_nonrunning(), and ast_sched_runq().

◆ first [1/2]

struct sched* first

Definition at line 125 of file sched.c.

◆ first [2/2]

struct sched_id* first

Definition at line 129 of file sched.c.

◆ highwater

unsigned int highwater

highest count so far

Definition at line 114 of file sched.c.

Referenced by ast_sched_dump(), ast_sched_report(), and schedule().

◆ 

struct { ... } id_queue

Queue of scheduler task IDs to assign

Referenced by add_ids(), ast_sched_context_destroy(), sched_release(), and set_sched_id().

◆ id_queue_size

int id_queue_size

The number of IDs in the id_queue

Definition at line 131 of file sched.c.

Referenced by add_ids().

◆ last [1/2]

struct sched* last

Definition at line 125 of file sched.c.

◆ last [2/2]

struct sched_id* last

Definition at line 129 of file sched.c.

◆ lock

◆ sched_heap

struct ast_heap* sched_heap

◆ sched_thread

◆ 

struct { ... } schedc

Cache of unused schedule structures and how many

Referenced by ast_sched_context_destroy(), sched_alloc(), and sched_release().

◆ schedccnt

unsigned int schedccnt

Definition at line 126 of file sched.c.

Referenced by ast_sched_dump(), sched_alloc(), and sched_release().

◆ tie_breaker

unsigned int tie_breaker

Next tie breaker in case events expire at the same time.

Definition at line 116 of file sched.c.

Referenced by schedule().


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