Go to the documentation of this file.
21 #ifndef AVCODEC_THREADPROGRESS_H
22 #define AVCODEC_THREADPROGRESS_H
37 #include <stdatomic.h>
void ff_thread_progress_report(ThreadProgress *pro, int progress)
This function is a no-op in no-op mode; otherwise it notifies other threads that a certain level of p...
ThreadProgress is an API to easily notify other threads about progress of any kind as long as it can ...
void ff_thread_progress_await(const ThreadProgress *pro, int progress)
This function is a no-op in no-op mode; otherwise it waits until other threads have reached a certain...
void ff_thread_progress_destroy(ThreadProgress *pro)
Destroy a ThreadProgress.
int ff_thread_progress_init(ThreadProgress *pro, int init_mode)
Initialize a ThreadProgress.
static void ff_thread_progress_reset(ThreadProgress *pro)
Reset the ThreadProgress.progress counter; must only be called if the ThreadProgress is not in use in...
#define atomic_init(obj, value)