28 #if HAVE_PTHREAD_CANCEL
29 #define DNNCond pthread_cond_t
30 #define dnn_cond_init pthread_cond_init
31 #define dnn_cond_destroy pthread_cond_destroy
32 #define dnn_cond_signal pthread_cond_signal
33 #define dnn_cond_wait pthread_cond_wait
simple assert() macros that are a bit more flexible than ISO C assert().
#define av_assert0(cond)
assert() equivalent, that is always enabled.
static int ff_mutex_unlock(AVMutex *mutex)
static int ff_mutex_lock(AVMutex *mutex)
static int ff_mutex_destroy(AVMutex *mutex)
static int ff_mutex_init(AVMutex *mutex, const void *attr)
Memory handling functions.
int(* cond)(enum AVPixelFormat pix_fmt)
void ff_queue_destroy(Queue *q)
int ff_queue_push_front(Queue *q, void *v)
int ff_queue_push_back(Queue *q, void *v)
void * ff_queue_pop_front(Queue *q)
Queue * ff_queue_create(void)
size_t ff_queue_size(Queue *q)
SafeQueue * ff_safe_queue_create(void)
int ff_safe_queue_push_back(SafeQueue *sq, void *v)
int ff_safe_queue_push_front(SafeQueue *sq, void *v)
static int dnn_cond_init(DNNCond *cond, const void *attr)
static int dnn_cond_destroy(DNNCond *cond)
size_t ff_safe_queue_size(SafeQueue *sq)
void * ff_safe_queue_pop_front(SafeQueue *sq)
static int dnn_cond_signal(DNNCond *cond)
static int dnn_cond_wait(DNNCond *cond, AVMutex *mutex)
void ff_safe_queue_destroy(SafeQueue *sq)