FFmpeg
|
ThreadProgress is an API to easily notify other threads about progress of any kind as long as it can be packaged into an int and is consistent with the natural ordering of integers. More...
#include <threadprogress.h>
Data Fields | |
atomic_int | progress |
unsigned | init |
AVMutex | progress_mutex |
AVCond | progress_cond |
ThreadProgress is an API to easily notify other threads about progress of any kind as long as it can be packaged into an int and is consistent with the natural ordering of integers.
Each initialized ThreadProgress can be in one of two modes: No-op mode or ordinary mode. In the former mode, ff_thread_report_progress() and ff_thread_await_progress() are no-ops to simply support usecases like non-frame-threading. Only in the latter case perform these functions what their name already implies. This struct should be treated as opaque by users.
Definition at line 43 of file threadprogress.h.
atomic_int ThreadProgress::progress |
Definition at line 44 of file threadprogress.h.
Referenced by ff_thread_progress_await(), ff_thread_progress_init(), ff_thread_progress_report(), and ff_thread_progress_reset().
unsigned ThreadProgress::init |
Definition at line 45 of file threadprogress.h.
Referenced by ff_thread_progress_destroy(), ff_thread_progress_init(), and ff_thread_progress_reset().
AVMutex ThreadProgress::progress_mutex |
Definition at line 46 of file threadprogress.h.
Referenced by ff_thread_progress_await(), and ff_thread_progress_report().
AVCond ThreadProgress::progress_cond |
Definition at line 47 of file threadprogress.h.
Referenced by ff_thread_progress_await(), and ff_thread_progress_report().