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

Function async_lock

libavcodec/pthread_frame.c:162–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162static void async_lock(FrameThreadContext *fctx)
163{
164 pthread_mutex_lock(&fctx->async_mutex);
165 while (fctx->async_lock)
166 pthread_cond_wait(&fctx->async_cond, &fctx->async_mutex);
167 fctx->async_lock = 1;
168 pthread_mutex_unlock(&fctx->async_mutex);
169}
170
171static void async_unlock(FrameThreadContext *fctx)
172{

Callers 3

ff_thread_receive_frameFunction · 0.85
ff_thread_finish_setupFunction · 0.85

Calls 3

pthread_mutex_lockFunction · 0.50
pthread_cond_waitFunction · 0.50
pthread_mutex_unlockFunction · 0.50

Tested by

no test coverage detected