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

Function av_thread_message_queue_set_err_recv

libavutil/threadmessage.c:204–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void av_thread_message_queue_set_err_recv(AVThreadMessageQueue *mq,
205 int err)
206{
207#if HAVE_THREADS
208 pthread_mutex_lock(&mq->lock);
209 mq->err_recv = err;
210 pthread_cond_broadcast(&mq->cond_recv);
211 pthread_mutex_unlock(&mq->lock);
212#endif /* HAVE_THREADS */
213}
214
215#if HAVE_THREADS
216static int free_func_wrap(void *arg, void *buf, size_t *nb_elems)

Callers 4

image_availableFunction · 0.85
fifo_write_trailerFunction · 0.85
dec_doneFunction · 0.85
sender_threadFunction · 0.85

Calls 3

pthread_mutex_lockFunction · 0.50
pthread_cond_broadcastFunction · 0.50
pthread_mutex_unlockFunction · 0.50

Tested by 1

sender_threadFunction · 0.68