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

Function tq_choke

fftools/thread_queue.c:258–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void tq_choke(ThreadQueue *tq, int choked)
259{
260 pthread_mutex_lock(&tq->lock);
261
262 int prev_choked = tq->choked;
263 tq->choked = choked;
264 if (choked != prev_choked)
265 pthread_cond_broadcast(&tq->cond);
266
267 pthread_mutex_unlock(&tq->lock);
268}

Callers 1

choke_demuxFunction · 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