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

Function tq_free

fftools/thread_queue.c:54–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54void tq_free(ThreadQueue **ptq)
55{
56 ThreadQueue *tq = *ptq;
57
58 if (!tq)
59 return;
60
61 av_container_fifo_free(&tq->fifo);
62 av_fifo_freep2(&tq->fifo_stream_index);
63
64 av_freep(&tq->finished);
65
66 pthread_cond_destroy(&tq->cond);
67 pthread_mutex_destroy(&tq->lock);
68
69 av_freep(ptq);
70}
71
72ThreadQueue *tq_alloc(unsigned int nb_streams, size_t queue_size,
73 enum ThreadQueueType type)

Callers 3

sch_remove_filtergraphFunction · 0.85
sch_freeFunction · 0.85
tq_allocFunction · 0.85

Calls 5

av_container_fifo_freeFunction · 0.85
av_fifo_freep2Function · 0.85
av_freepFunction · 0.85
pthread_cond_destroyFunction · 0.50
pthread_mutex_destroyFunction · 0.50

Tested by

no test coverage detected