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
int id
struct {
   struct sched *   next
list
int resched
int variable
struct timeval when

Detailed Description

Definition at line 65 of file sched.c.


Field Documentation

ssize_t __heap_index

Definition at line 73 of file sched.c.

Referenced by ast_sched_context_create().

Callback

Definition at line 72 of file sched.c.

Referenced by ast_sched_add_variable(), ast_sched_clean_by_callback(), ast_sched_report(), and ast_sched_runq().

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

Definition at line 78 of file sched.c.

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

const void* data

unsigned int deleted

Indication that a running task was deleted.

Definition at line 80 of file sched.c.

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

int id

ID number of event

Definition at line 67 of file sched.c.

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

struct { ... } list

struct sched* next [read]

Definition at line 66 of file sched.c.

int resched

When to reschedule

Definition at line 69 of file sched.c.

Referenced by ast_sched_add_variable(), and ast_sched_runq().

int variable

Use return value from callback to reschedule

Definition at line 70 of file sched.c.

Referenced by ast_sched_add_variable(), and ast_sched_runq().

struct timeval when [read]

Absolute time event should take place

Definition at line 68 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:

Generated on Thu Apr 16 06:37:14 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6