Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
sched Struct Reference
Collaboration diagram for sched:
Collaboration graph
[legend]

Data Fields

ssize_t __heap_index
 
ast_sched_cb callback
 
ast_cond_t cond
 
const void * data
 
unsigned int deleted:1
 
struct {
   struct sched *   next
 
list
 
int resched
 
struct sched_idsched_id
 
unsigned int tie_breaker
 Tie breaker in case the when is the same for multiple entries. More...
 
int variable
 
struct timeval when
 

Detailed Description

Definition at line 76 of file sched.c.

Field Documentation

◆ __heap_index

ssize_t __heap_index

Definition at line 93 of file sched.c.

◆ callback

ast_sched_cb callback

◆ cond

ast_cond_t cond

Used to synchronize between thread running a task and thread attempting to delete a task

Definition at line 98 of file sched.c.

Referenced by ast_sched_del(), ast_sched_runq(), sched_alloc(), and sched_free().

◆ data

const void* data

◆ deleted

unsigned int deleted

Indication that a running task was deleted.

Definition at line 100 of file sched.c.

Referenced by ast_sched_add_variable(), ast_sched_del(), and ast_sched_runq().

◆ list

struct { ... } list

◆ next

struct sched* next

Definition at line 77 of file sched.c.

◆ resched

int resched

When to reschedule

Definition at line 89 of file sched.c.

Referenced by ast_sched_add_variable(), and ast_sched_runq().

◆ sched_id

struct sched_id* sched_id

The ID that has been popped off the scheduler context's queue

Definition at line 79 of file sched.c.

Referenced by ast_sched_add_variable(), ast_sched_del(), sched_find(), sched_free(), sched_release(), and set_sched_id().

◆ tie_breaker

unsigned int tie_breaker

Tie breaker in case the when is the same for multiple entries.

Note
The oldest expiring entry in the scheduler heap goes first. This is possible when multiple events are scheduled to expire at the same time by internal coding.

Definition at line 88 of file sched.c.

Referenced by sched_time_cmp(), and schedule().

◆ variable

int variable

Use return value from callback to reschedule

Definition at line 90 of file sched.c.

Referenced by ast_sched_add_variable(), and ast_sched_runq().

◆ when

struct timeval when

Absolute time event should take place

Definition at line 80 of file sched.c.

Referenced by ast_sched_add_variable(), ast_sched_runq(), ast_sched_wait(), ast_sched_when(), and sched_time_cmp().


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