Asterisk - The Open Source Telephony Project GIT-master-0644429
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
 
unsigned int rescheduled:1
 
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_nonrunning().

◆ data

const void* data

Data

Definition at line 91 of file sched.c.

Referenced by ast_sched_add(), ast_sched_add_variable(), ast_sched_find_data(), and ast_sched_replace().

◆ deleted

unsigned int deleted

Indication that a running task was deleted.

Definition at line 100 of file sched.c.

Referenced by ast_sched_del_nonrunning().

◆ 

struct { ... } list

Referenced by sched_alloc().

◆ 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.

◆ rescheduled

unsigned int rescheduled

Indication that a running task was rescheduled.

Definition at line 102 of file sched.c.

Referenced by ast_sched_del_nonrunning().

◆ 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_del_nonrunning(), pubsub_on_rx_publish_request(), sched_find(), 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 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().

◆ when

struct timeval when

Absolute time event should take place

Definition at line 80 of file sched.c.

Referenced by ast_sched_add(), ast_sched_add_variable(), ast_sched_replace(), ast_sched_wait(), and ast_sched_when().


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