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

Function waiter_init

fftools/ffmpeg_sched.c:349–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349static int waiter_init(SchWaiter *w)
350{
351 int ret;
352
353 atomic_init(&w->choked, 0);
354
355 ret = pthread_mutex_init(&w->lock, NULL);
356 if (ret)
357 return AVERROR(ret);
358
359 ret = pthread_cond_init(&w->cond, NULL);
360 if (ret)
361 return AVERROR(ret);
362
363 return 0;
364}
365
366static void waiter_uninit(SchWaiter *w)
367{

Callers 2

sch_add_demuxFunction · 0.85
sch_add_filtergraphFunction · 0.85

Calls 2

pthread_mutex_initFunction · 0.50
pthread_cond_initFunction · 0.50

Tested by

no test coverage detected