#include "config.h"
#include <stdbool.h>
#include "mem.h"
#include "thread.h"
#include "executor.h"
Go to the source code of this file.
◆ ExecutorThread
| #define ExecutorThread char |
◆ executor_thread_create
| #define executor_thread_create |
( |
| t, |
|
|
| a, |
|
|
| s, |
|
|
| ar ) |
◆ executor_thread_join
| #define executor_thread_join |
( |
| t, |
|
|
| r ) |
◆ remove_task()
◆ add_task()
◆ run_one_task()
| static int run_one_task |
( |
AVExecutor * | e, |
|
|
void * | lc ) |
|
static |
◆ executor_free()
| static void executor_free |
( |
AVExecutor * | e, |
|
|
const int | has_lock, |
|
|
const int | has_cond ) |
|
static |
◆ av_executor_alloc()
Alloc executor.
- Parameters
-
| callbacks | callback structure for executor |
| thread_count | worker thread number, 0 for run on caller's thread directly |
- Returns
- return the executor
Definition at line 142 of file executor.c.
◆ av_executor_free()
Free executor.
- Parameters
-
Definition at line 184 of file executor.c.
◆ av_executor_execute()
Add task to executor.
- Parameters
-
| e | pointer to executor |
| t | pointer to task. If NULL, it will wakeup one work thread |
Definition at line 195 of file executor.c.