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

Function av_thread_message_queue_nb_elems

libavutil/threadmessage.c:110–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110int av_thread_message_queue_nb_elems(AVThreadMessageQueue *mq)
111{
112#if HAVE_THREADS
113 int ret;
114 pthread_mutex_lock(&mq->lock);
115 ret = av_fifo_can_read(mq->fifo);
116 pthread_mutex_unlock(&mq->lock);
117 return ret;
118#else
119 return AVERROR(ENOSYS);
120#endif
121}
122
123#if HAVE_THREADS
124

Callers 1

receiver_threadFunction · 0.85

Calls 3

av_fifo_can_readFunction · 0.85
pthread_mutex_lockFunction · 0.50
pthread_mutex_unlockFunction · 0.50

Tested by 1

receiver_threadFunction · 0.68