FFmpeg
Data Structures | Functions
executor.h File Reference

Go to the source code of this file.

Data Structures

struct  AVTask
 
struct  AVTaskCallbacks
 

Functions

AVExecutorav_executor_alloc (const AVTaskCallbacks *callbacks, int thread_count)
 Alloc executor. More...
 
void av_executor_free (AVExecutor **e)
 Free executor. More...
 
void av_executor_execute (AVExecutor *e, AVTask *t)
 Add task to executor. More...
 

Function Documentation

◆ av_executor_alloc()

AVExecutor* av_executor_alloc ( const AVTaskCallbacks callbacks,
int  thread_count 
)

Alloc executor.

Parameters
callbackscallback structure for executor
thread_countworker thread number, 0 for run on caller's thread directly
Returns
return the executor

Definition at line 142 of file executor.c.

Referenced by ff_vvc_executor_alloc().

◆ av_executor_free()

void av_executor_free ( AVExecutor **  e)

Free executor.

Parameters
epointer to executor

Definition at line 184 of file executor.c.

Referenced by ff_vvc_executor_free().

◆ av_executor_execute()

void av_executor_execute ( AVExecutor e,
AVTask t 
)

Add task to executor.

Parameters
epointer to executor
tpointer to task. If NULL, it will wakeup one work thread

Definition at line 195 of file executor.c.

Referenced by add_task().