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

Function thread_execute

libavfilter/pthread.c:58–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static int thread_execute(AVFilterContext *ctx, avfilter_action_func *func,
59 void *arg, int *ret, int nb_jobs)
60{
61 ThreadContext *c = fffiltergraph(ctx->graph)->thread;
62
63 if (nb_jobs <= 0)
64 return 0;
65 c->ctx = ctx;
66 c->arg = arg;
67 c->func = func;
68 c->rets = ret;
69
70 avpriv_slicethread_execute(c->thread, nb_jobs, 0);
71 return 0;
72}
73
74static int thread_init_internal(ThreadContext *c, int nb_threads)
75{

Callers

nothing calls this directly

Calls 2

fffiltergraphFunction · 0.85

Tested by

no test coverage detected