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

Function async_unlock

libavcodec/pthread_frame.c:171–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171static void async_unlock(FrameThreadContext *fctx)
172{
173 pthread_mutex_lock(&fctx->async_mutex);
174 av_assert0(fctx->async_lock);
175 fctx->async_lock = 0;
176 pthread_cond_broadcast(&fctx->async_cond);
177 pthread_mutex_unlock(&fctx->async_mutex);
178}
179
180static void thread_set_name(PerThreadContext *p)
181{

Callers 3

frame_worker_threadFunction · 0.85
ff_thread_receive_frameFunction · 0.85

Calls 3

pthread_mutex_lockFunction · 0.50
pthread_cond_broadcastFunction · 0.50
pthread_mutex_unlockFunction · 0.50

Tested by

no test coverage detected