Go to the documentation of this file.
22 #include <stdatomic.h>
40 pro->
init = init_mode;
void ff_thread_progress_report(ThreadProgress *pro, int n)
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 ...
static int ff_cond_broadcast(AVCond *cond)
av_cold void ff_pthread_free(void *obj, const unsigned offsets[])
static int ff_mutex_unlock(AVMutex *mutex)
static int ff_cond_wait(AVCond *cond, AVMutex *mutex)
void ff_thread_progress_await(const ThreadProgress *pro_c, int n)
This function is a no-op in no-op mode; otherwise it waits until other threads have reached a certain...
#define atomic_load_explicit(object, order)
int(* init)(AVBSFContext *ctx)
static int ff_mutex_lock(AVMutex *mutex)
#define atomic_store_explicit(object, desired, order)
av_cold int ff_thread_progress_init(ThreadProgress *pro, int init_mode)
Initialize a ThreadProgress.
DEFINE_OFFSET_ARRAY(ThreadProgress, thread_progress, init,(0x42),(0x42))
av_cold void ff_thread_progress_destroy(ThreadProgress *pro)
Destroy a ThreadProgress.
av_cold int ff_pthread_init(void *obj, const unsigned offsets[])
Initialize/destroy a list of mutexes/conditions contained in a structure.
#define atomic_init(obj, value)