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

Function tq_receive_finish

fftools/thread_queue.c:243–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void tq_receive_finish(ThreadQueue *tq, unsigned int stream_idx)
244{
245 av_assert0(stream_idx < tq->nb_streams);
246
247 pthread_mutex_lock(&tq->lock);
248
249 /* mark the stream as recv-finished;
250 * next time the producer thread tries to send for this stream, it will
251 * get an EOF and send-finished flag will be set */
252 tq->finished[stream_idx] |= FINISHED_RECV;
253 pthread_cond_broadcast(&tq->cond);
254
255 pthread_mutex_unlock(&tq->lock);
256}
257
258void tq_choke(ThreadQueue *tq, int choked)
259{

Callers 6

sch_mux_receive_finishFunction · 0.85
mux_doneFunction · 0.85
dec_doneFunction · 0.85
enc_doneFunction · 0.85
filter_doneFunction · 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