|
FFmpeg 7.1.2
|
Go to the source code of this file.
Data Structures | |
| struct | AVTask |
| struct | AVTaskCallbacks |
Typedefs | |
| typedef struct AVExecutor | AVExecutor |
Functions | |
| AVExecutor * | av_executor_alloc (const AVTaskCallbacks *callbacks, int thread_count) |
| Alloc executor. | |
| void | av_executor_free (AVExecutor **e) |
| Free executor. | |
| void | av_executor_execute (AVExecutor *e, AVTask *t) |
| Add task to executor. | |
| typedef struct AVExecutor AVExecutor |
Definition at line 24 of file executor.h.
| 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 |
| void av_executor_free | ( | AVExecutor ** | e | ) |
Free executor.
| e | pointer to executor |
| 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 |