FFmpeg
|
Go to the source code of this file.
Data Structures | |
struct | ThreadInfo |
HAVE_THREADS. More... | |
struct | AVExecutor |
Macros | |
#define | ExecutorThread char |
#define | executor_thread_create(t, a, s, ar) 0 |
#define | executor_thread_join(t, r) do {} while(0) |
Functions | |
static AVTask * | remove_task (AVTask **prev, AVTask *t) |
static void | add_task (AVTask **prev, AVTask *t) |
static int | run_one_task (AVExecutor *e, void *lc) |
static void | executor_free (AVExecutor *e, const int has_lock, const int has_cond) |
AVExecutor * | av_executor_alloc (const AVTaskCallbacks *cb, int thread_count) |
Alloc executor. More... | |
void | av_executor_free (AVExecutor **executor) |
Free executor. More... | |
void | av_executor_execute (AVExecutor *e, AVTask *t) |
Add task to executor. More... | |
#define ExecutorThread char |
Definition at line 32 of file executor.c.
Definition at line 34 of file executor.c.
Definition at line 35 of file executor.c.
Definition at line 66 of file executor.c.
Referenced by run_one_task().
Definition at line 73 of file executor.c.
Referenced by av_executor_execute().
|
static |
Definition at line 79 of file executor.c.
Referenced by av_executor_execute().
|
static |
Definition at line 119 of file executor.c.
Referenced by av_executor_alloc(), and av_executor_free().
AVExecutor* av_executor_alloc | ( | const AVTaskCallbacks * | callbacks, |
int | thread_count | ||
) |
Alloc executor.
callbacks | callback structure for executor |
thread_count | worker thread number, 0 for run on caller's thread directly |
Definition at line 142 of file executor.c.
Referenced by ff_vvc_executor_alloc().
void av_executor_free | ( | AVExecutor ** | e | ) |
Free executor.
e | pointer to executor |
Definition at line 184 of file executor.c.
Referenced by ff_vvc_executor_free().
void av_executor_execute | ( | AVExecutor * | e, |
AVTask * | t | ||
) |
Add task to executor.
e | pointer to executor |
t | pointer to task. If NULL, it will wakeup one work thread |
Definition at line 195 of file executor.c.
Referenced by add_task().