#include <string.h>Go to the source code of this file.
| Enumerator | |
|---|---|
| THREAD_QUEUE_FRAMES | |
| THREAD_QUEUE_PACKETS | |
Definition at line 24 of file thread_queue.h.
Allocate a queue for sending data between threads.
Definition at line 72 of file thread_queue.c.
Referenced by queue_alloc().
Definition at line 54 of file thread_queue.c.
Referenced by sch_free(), sch_remove_filtergraph(), and tq_alloc().
Send an item for the given stream to the queue.
Definition at line 117 of file thread_queue.c.
Referenced by demux_flush(), demux_stream_send_to_dst(), enc_send_to_dst(), mux_task_start(), sch_mux_sub_heartbeat(), send_to_enc_thread(), send_to_filter(), and send_to_mux().
Mark the given stream finished from the sending side.
Definition at line 227 of file thread_queue.c.
Referenced by demux_stream_send_to_dst(), enc_send_to_dst(), mux_task_start(), send_to_enc_thread(), send_to_filter(), and send_to_mux().
Prevent further reads from the thread queue until it is unchoked.
Threads attempting to read from the queue will block, similar to when the queue is empty.
Definition at line 258 of file thread_queue.c.
Referenced by choke_demux().
Read the next item from the queue.
Definition at line 197 of file thread_queue.c.
Referenced by sch_dec_receive(), sch_enc_receive(), sch_filter_receive(), and sch_mux_receive().
Mark the given stream finished from the receiving side.
Definition at line 243 of file thread_queue.c.
Referenced by dec_done(), enc_done(), filter_done(), mux_done(), sch_filter_receive_finish(), and sch_mux_receive_finish().