FFmpeg  4.0
Macros | Functions
semaphore.h File Reference
#include <dispatch/dispatch.h>
#include <errno.h>

Go to the source code of this file.

Macros

#define sem_t   dispatch_semaphore_t
 
#define sem_post(psem)   dispatch_semaphore_signal(*psem)
 
#define sem_wait(psem)   dispatch_semaphore_wait(*psem, DISPATCH_TIME_FOREVER)
 
#define sem_timedwait(psem, val)   dispatch_semaphore_wait(*psem, dispatch_walltime(val, 0))
 
#define sem_destroy(psem)   dispatch_release(*psem)
 
#define sem_init   compat_sem_init
 

Functions

static int compat_sem_init (dispatch_semaphore_t *psem, int unused, int val)
 

Macro Definition Documentation

◆ sem_t

#define sem_t   dispatch_semaphore_t

Definition at line 25 of file semaphore.h.

◆ sem_post

#define sem_post (   psem)    dispatch_semaphore_signal(*psem)

Definition at line 26 of file semaphore.h.

Referenced by process_callback(), and v4l2_free_buffer().

◆ sem_wait

#define sem_wait (   psem)    dispatch_semaphore_wait(*psem, DISPATCH_TIME_FOREVER)

Definition at line 27 of file semaphore.h.

Referenced by ff_v4l2_m2m_codec_full_reinit(), and ff_v4l2_m2m_codec_reinit().

◆ sem_timedwait

#define sem_timedwait (   psem,
  val 
)    dispatch_semaphore_wait(*psem, dispatch_walltime(val, 0))

Definition at line 28 of file semaphore.h.

Referenced by audio_read_packet().

◆ sem_destroy

#define sem_destroy (   psem)    dispatch_release(*psem)

Definition at line 29 of file semaphore.h.

Referenced by stop_jack(), and v4l2_m2m_destroy_context().

◆ sem_init

#define sem_init   compat_sem_init

Definition at line 40 of file semaphore.h.

Referenced by start_jack(), and v4l2_prepare_contexts().

Function Documentation

◆ compat_sem_init()

static int compat_sem_init ( dispatch_semaphore_t *  psem,
int  unused,
int  val 
)
inlinestatic

Definition at line 31 of file semaphore.h.