FFmpeg
Macros | Functions
thread.h File Reference
#include "config.h"
#include "error.h"

Go to the source code of this file.

Macros

#define AVMutex   char
 
#define AV_MUTEX_INITIALIZER   0
 
#define AVCond   char
 
#define AVOnce   char
 
#define AV_ONCE_INIT   0
 

Functions

static int ff_mutex_init (AVMutex *mutex, const void *attr)
 
static int ff_mutex_lock (AVMutex *mutex)
 
static int ff_mutex_unlock (AVMutex *mutex)
 
static int ff_mutex_destroy (AVMutex *mutex)
 
static int ff_cond_init (AVCond *cond, const void *attr)
 
static int ff_cond_destroy (AVCond *cond)
 
static int ff_cond_signal (AVCond *cond)
 
static int ff_cond_broadcast (AVCond *cond)
 
static int ff_cond_wait (AVCond *cond, AVMutex *mutex)
 
static int ff_cond_timedwait (AVCond *cond, AVMutex *mutex, const void *abstime)
 
static int ff_thread_once (char *control, void(*routine)(void))
 
static int ff_thread_setname (const char *name)
 

Macro Definition Documentation

◆ AVMutex

#define AVMutex   char

Definition at line 182 of file thread.h.

◆ AV_MUTEX_INITIALIZER

#define AV_MUTEX_INITIALIZER   0

Definition at line 183 of file thread.h.

◆ AVCond

#define AVCond   char

Definition at line 190 of file thread.h.

◆ AVOnce

#define AVOnce   char

Definition at line 200 of file thread.h.

◆ AV_ONCE_INIT

#define AV_ONCE_INIT   0

Definition at line 201 of file thread.h.

Function Documentation

◆ ff_mutex_init()

static int ff_mutex_init ( AVMutex mutex,
const void *  attr 
)
inlinestatic

◆ ff_mutex_lock()

static int ff_mutex_lock ( AVMutex mutex)
inlinestatic

◆ ff_mutex_unlock()

static int ff_mutex_unlock ( AVMutex mutex)
inlinestatic

◆ ff_mutex_destroy()

static int ff_mutex_destroy ( AVMutex mutex)
inlinestatic

Definition at line 188 of file thread.h.

Referenced by buffer_pool_free(), executor_free(), and ff_safe_queue_destroy().

◆ ff_cond_init()

static int ff_cond_init ( AVCond cond,
const void *  attr 
)
inlinestatic

Definition at line 192 of file thread.h.

Referenced by av_executor_alloc().

◆ ff_cond_destroy()

static int ff_cond_destroy ( AVCond cond)
inlinestatic

Definition at line 193 of file thread.h.

Referenced by executor_free().

◆ ff_cond_signal()

static int ff_cond_signal ( AVCond cond)
inlinestatic

Definition at line 194 of file thread.h.

Referenced by av_executor_execute().

◆ ff_cond_broadcast()

static int ff_cond_broadcast ( AVCond cond)
inlinestatic

Definition at line 195 of file thread.h.

Referenced by executor_free().

◆ ff_cond_wait()

static int ff_cond_wait ( AVCond cond,
AVMutex mutex 
)
inlinestatic

Definition at line 196 of file thread.h.

◆ ff_cond_timedwait()

static int ff_cond_timedwait ( AVCond cond,
AVMutex mutex,
const void *  abstime 
)
inlinestatic

Definition at line 197 of file thread.h.

◆ ff_thread_once()

static int ff_thread_once ( char *  control,
void(*)(void)  routine 
)
inlinestatic

Definition at line 203 of file thread.h.

Referenced by aac_decode_init(), ac3_decode_init(), atrac3_decode_init(), atrac3p_decode_init(), atrac9_decode_init(), av_codec_iterate(), clv_decode_init(), cook_decode_init(), d3d11va_device_create(), dcadec_init(), decode_init(), dirac_decode_init(), dolby_e_init(), dvbsub_init_decoder(), dvvideo_decode_init(), dvvideo_encode_init(), encode_init(), ff_aac_tableinit(), ff_ac3_encode_init(), ff_atrac_generate_tables(), ff_ccitt_unpack_init(), ff_ebur128_init(), ff_h261_encode_init(), ff_h263_decode_init_vlc(), ff_h263_encode_init(), ff_h263_init_rl_inter(), ff_init_dsd_data(), ff_init_ff_sine_windows(), ff_intrax8_common_init(), ff_ivi_init_static_vlc(), ff_jpeg2000_init_tier1_luts(), ff_kperf_init(), ff_mlp_init_crc(), ff_mpa_synth_init_TMPL(), ff_mpadsp_init(), ff_mpeg12_init_vlcs(), ff_mpeg4_init_rl_intra(), ff_mpegaudiodec_common_init_static(), ff_msmp4_vc1_vlcs_init_once(), ff_msmpeg4_common_init(), ff_msmpeg4_decode_init(), ff_msmpeg4_encode_init(), ff_rv34_decode_init(), ff_snow_common_init(), ff_speedhq_encode_init(), ff_tx_init_tabs(), ff_vc1_init_common(), h261_decode_init(), h264_decode_init(), imc_decode_init(), ir2_decode_init(), j2kenc_init(), lag_decode_init(), mimic_decode_init(), mlp_decode_init(), mlp_encode_init(), mobiclip_init(), mp_decode_init(), mpc7_decode_init(), mpc8_decode_init(), mpv_encode_defaults(), mss4_decode_init(), qdm2_decode_init(), qdmc_decode_init(), rv10_decode_init(), rv40_decode_init(), speedhq_decode_init(), svq1_decode_init(), sws_init_context(), tscc2_decode_init(), vqc_decode_init(), and wmavoice_decode_init().

◆ ff_thread_setname()

static int ff_thread_setname ( const char *  name)
inlinestatic