FFmpeg
Loading...
Searching...
No Matches
executor.h File Reference

Go to the source code of this file.

Data Structures

struct  FFTask
 
struct  FFTaskCallbacks
 

Functions

FFExecutorff_executor_alloc (const FFTaskCallbacks *callbacks, int thread_count)
 Alloc executor.
 
void ff_executor_free (FFExecutor **e)
 Free executor.
 
void ff_executor_execute (FFExecutor *e, FFTask *t)
 Add task to executor.
 

Function Documentation

◆ ff_executor_alloc()

FFExecutor * ff_executor_alloc ( const FFTaskCallbacks * 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 156 of file executor.c.

Referenced by ff_vvc_executor_alloc().

◆ ff_executor_free()

void ff_executor_free ( FFExecutor ** e)

Free executor.

Parameters
epointer to executor

Definition at line 202 of file executor.c.

Referenced by ff_vvc_executor_free().

◆ ff_executor_execute()

void ff_executor_execute ( FFExecutor * e,
FFTask * t )

Add task to executor.

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

Definition at line 213 of file executor.c.

Referenced by add_task().