VLC 4.0.0-dev
queue.c File Reference
Include dependency graph for queue.c:

Functions

static void entry_set (struct vlc_queue_entry **pp, struct vlc_queue_entry *e)
 
static struct vlc_queue_entry * entry_get (struct vlc_queue_entry *const *pp)
 
static struct vlc_queue_entry ** next_p (const struct vlc_queue_entry *e, ptrdiff_t offset)
 
static void next_set (struct vlc_queue_entry *e, struct vlc_queue_entry *next, ptrdiff_t offset)
 
static struct vlc_queue_entry * next_get (const struct vlc_queue_entry *e, ptrdiff_t offset)
 
void vlc_queue_Init (vlc_queue_t *q, ptrdiff_t next_offset)
 Initializes a queue. More...
 
void vlc_queue_EnqueueUnlocked (vlc_queue_t *q, void *entry)
 Queues an entry (without locking). More...
 
void * vlc_queue_DequeueUnlocked (vlc_queue_t *q)
 Dequeues the oldest entry (without locking). More...
 
void * vlc_queue_DequeueAllUnlocked (vlc_queue_t *q)
 Dequeues all entries (without locking). More...
 
void vlc_queue_Enqueue (vlc_queue_t *q, void *entry)
 Queues an entry. More...
 
void * vlc_queue_Dequeue (vlc_queue_t *q)
 Dequeues the oldest entry. More...
 
void * vlc_queue_DequeueAll (vlc_queue_t *q)
 Dequeues all entries. More...
 

Function Documentation

◆ entry_get()

static struct vlc_queue_entry * entry_get ( struct vlc_queue_entry *const *  pp)
static

◆ entry_set()

static void entry_set ( struct vlc_queue_entry **  pp,
struct vlc_queue_entry *  e 
)
static

◆ next_get()

static struct vlc_queue_entry * next_get ( const struct vlc_queue_entry *  e,
ptrdiff_t  offset 
)
static

◆ next_p()

static struct vlc_queue_entry ** next_p ( const struct vlc_queue_entry *  e,
ptrdiff_t  offset 
)
static

◆ next_set()

static void next_set ( struct vlc_queue_entry *  e,
struct vlc_queue_entry *  next,
ptrdiff_t  offset 
)
static

References entry_set(), and next_p().

Referenced by vlc_queue_DequeueUnlocked().