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

Function av_thread_message_queue_free

libavutil/threadmessage.c:96–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void av_thread_message_queue_free(AVThreadMessageQueue **mq)
97{
98#if HAVE_THREADS
99 if (*mq) {
100 av_thread_message_flush(*mq);
101 av_fifo_freep2(&(*mq)->fifo);
102 pthread_cond_destroy(&(*mq)->cond_send);
103 pthread_cond_destroy(&(*mq)->cond_recv);
104 pthread_mutex_destroy(&(*mq)->lock);
105 av_freep(mq);
106 }
107#endif
108}
109
110int av_thread_message_queue_nb_elems(AVThreadMessageQueue *mq)
111{

Callers 4

fifo_deinitFunction · 0.85
sch_freeFunction · 0.85
mainFunction · 0.85

Calls 5

av_thread_message_flushFunction · 0.85
av_fifo_freep2Function · 0.85
av_freepFunction · 0.85
pthread_cond_destroyFunction · 0.50
pthread_mutex_destroyFunction · 0.50

Tested by 1

mainFunction · 0.68