VLC 4.0.0-dev
|
Go to the source code of this file.
Data Structures | |
struct | vlc_queue |
Thread-safe queue (a.k.a. More... | |
Typedefs | |
typedef struct vlc_queue | vlc_queue_t |
Thread-safe queue (a.k.a. | |
Functions | |
void | vlc_queue_Init (vlc_queue_t *queue, ptrdiff_t next_offset) |
Initializes a queue. | |
static void | vlc_queue_Lock (vlc_queue_t *q) |
Locks a queue. | |
static void | vlc_queue_Unlock (vlc_queue_t *q) |
Unlocks a queue. | |
static void | vlc_queue_Signal (vlc_queue_t *q) |
Wakes one thread waiting for a queue entry up. | |
static void | vlc_queue_Wait (vlc_queue_t *q) |
Waits for a queue entry. | |
void | vlc_queue_EnqueueUnlocked (vlc_queue_t *q, void *entry) |
Queues an entry (without locking). | |
void * | vlc_queue_DequeueUnlocked (vlc_queue_t *) |
Dequeues the oldest entry (without locking). | |
void * | vlc_queue_DequeueAllUnlocked (vlc_queue_t *) |
Dequeues all entries (without locking). | |
static bool | vlc_queue_IsEmpty (const vlc_queue_t *q) |
Checks if a queue is empty (without locking). | |
void | vlc_queue_Enqueue (vlc_queue_t *q, void *entry) |
Queues an entry. | |
void * | vlc_queue_Dequeue (vlc_queue_t *queue) |
Dequeues the oldest entry. | |
void * | vlc_queue_DequeueAll (vlc_queue_t *) |
Dequeues all entries. | |
static void | vlc_queue_Kill (vlc_queue_t *q, bool *restrict tombstone) |
Marks a queue ended. | |
static void * | vlc_queue_DequeueKillable (vlc_queue_t *q, const bool *tombstone) |
Dequeues one entry from a killable queue. | |