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

Function av_thread_message_queue_recv

libavutil/threadmessage.c:177–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177int av_thread_message_queue_recv(AVThreadMessageQueue *mq,
178 void *msg,
179 unsigned flags)
180{
181#if HAVE_THREADS
182 int ret;
183
184 pthread_mutex_lock(&mq->lock);
185 ret = av_thread_message_queue_recv_locked(mq, msg, flags);
186 pthread_mutex_unlock(&mq->lock);
187 return ret;
188#else
189 return AVERROR(ENOSYS);
190#endif /* HAVE_THREADS */
191}
192
193void av_thread_message_queue_set_err_send(AVThreadMessageQueue *mq,
194 int err)

Callers 5

fifo_consumer_threadFunction · 0.85
demux_flushFunction · 0.85
receiver_threadFunction · 0.85

Calls 3

pthread_mutex_lockFunction · 0.50
pthread_mutex_unlockFunction · 0.50

Tested by 1

receiver_threadFunction · 0.68