MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / tq_send_finish

Function tq_send_finish

fftools/thread_queue.c:227–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void tq_send_finish(ThreadQueue *tq, unsigned int stream_idx)
228{
229 av_assert0(stream_idx < tq->nb_streams);
230
231 pthread_mutex_lock(&tq->lock);
232
233 /* mark the stream as send-finished;
234 * next time the consumer thread tries to read this stream it will get
235 * an EOF and recv-finished flag will be set */
236 tq->finished[stream_idx] |= FINISHED_SEND;
237 tq->choked = 0;
238 pthread_cond_broadcast(&tq->cond);
239
240 pthread_mutex_unlock(&tq->lock);
241}
242
243void tq_receive_finish(ThreadQueue *tq, unsigned int stream_idx)
244{

Callers 6

mux_task_startFunction · 0.85
send_to_enc_threadFunction · 0.85
send_to_muxFunction · 0.85
demux_stream_send_to_dstFunction · 0.85
send_to_filterFunction · 0.85
enc_send_to_dstFunction · 0.85

Calls 3

pthread_mutex_lockFunction · 0.50
pthread_cond_broadcastFunction · 0.50
pthread_mutex_unlockFunction · 0.50

Tested by

no test coverage detected