FFmpeg
Data Fields
ThreadProgress Struct Reference

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
 

Detailed Description

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.

Field Documentation

◆ progress

atomic_int ThreadProgress::progress

◆ init

unsigned ThreadProgress::init

◆ progress_mutex

AVMutex ThreadProgress::progress_mutex

Definition at line 46 of file threadprogress.h.

Referenced by ff_thread_progress_await(), and ff_thread_progress_report().

◆ progress_cond

AVCond ThreadProgress::progress_cond

Definition at line 47 of file threadprogress.h.

Referenced by ff_thread_progress_await(), and ff_thread_progress_report().


The documentation for this struct was generated from the following file: