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

Function av_thread_message_queue_send

libavutil/threadmessage.c:161–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159#endif /* HAVE_THREADS */
160
161int av_thread_message_queue_send(AVThreadMessageQueue *mq,
162 void *msg,
163 unsigned flags)
164{
165#if HAVE_THREADS
166 int ret;
167
168 pthread_mutex_lock(&mq->lock);
169 ret = av_thread_message_queue_send_locked(mq, msg, flags);
170 pthread_mutex_unlock(&mq->lock);
171 return ret;
172#else
173 return AVERROR(ENOSYS);
174#endif /* HAVE_THREADS */
175}
176
177int av_thread_message_queue_recv(AVThreadMessageQueue *mq,
178 void *msg,

Callers 5

image_availableFunction · 0.85
fifo_write_packetFunction · 0.85
fifo_write_trailerFunction · 0.85
sch_dec_receiveFunction · 0.85
sender_threadFunction · 0.85

Calls 3

pthread_mutex_lockFunction · 0.50
pthread_mutex_unlockFunction · 0.50

Tested by 1

sender_threadFunction · 0.68