FFmpeg
Data Structures | Macros | Typedefs | Functions
os2threads.h File Reference

os2threads to pthreads wrapper More...

#include <os2.h>
#include <stdlib.h>
#include <sys/builtin.h>
#include <sys/fmutex.h>
#include "libavutil/attributes.h"

Go to the source code of this file.

Data Structures

struct   pthread_t
 
struct   pthread_cond_t
 
struct   pthread_once_t
 

Macros

#define  INCL_DOS
 
#define  PTHREAD_MUTEX_INITIALIZER   _FMUTEX_INITIALIZER
 
#define  PTHREAD_ONCE_INIT   {0, _FMUTEX_INITIALIZER}
 

Typedefs

typedef void  pthread_attr_t
 
typedef _fmutex  pthread_mutex_t
 
 
 

Functions

static void  thread_entry (void *arg)
 
static av_always_inline int  pthread_create (pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)
 
static av_always_inline int  pthread_join (pthread_t thread, void **value_ptr)
 
 
 
 
 
 
 
 
 
 
static av_always_inline int  pthread_once (pthread_once_t *once_control, void(*init_routine)(void))
 

Detailed Description

os2threads to pthreads wrapper

Definition in file os2threads.h.

Macro Definition Documentation

#define INCL_DOS

Definition at line 29 of file os2threads.h.

#define PTHREAD_MUTEX_INITIALIZER   _FMUTEX_INITIALIZER

Definition at line 52 of file os2threads.h.

#define PTHREAD_ONCE_INIT   {0, _FMUTEX_INITIALIZER}

Definition at line 67 of file os2threads.h.

Typedef Documentation

Definition at line 47 of file os2threads.h.

typedef _fmutex pthread_mutex_t

Definition at line 49 of file os2threads.h.

Definition at line 50 of file os2threads.h.

Definition at line 60 of file os2threads.h.

Function Documentation

static void thread_entry ( voidarg )
static

Definition at line 69 of file os2threads.h.

Referenced by pthread_create().

static av_always_inline int pthread_create ( pthread_tthread,
const pthread_attr_tattr,
void *(*)(void *)  start_routine,
voidarg 
)
static

Definition at line 76 of file os2threads.h.

Referenced by async_open(), config_input_ref(), ff_frame_thread_encoder_init(), ff_frame_thread_init(), fifo_write_header(), iec61883_read_header(), main(), and udp_open().

static av_always_inline int pthread_join ( pthread_t  thread,
void **  value_ptr 
)
static

Definition at line 90 of file os2threads.h.

Referenced by async_close(), ff_frame_thread_encoder_free(), ff_frame_thread_free(), fifo_write_trailer(), iec61883_close(), main(), udp_close(), and uninit().

static av_always_inline int pthread_mutex_init ( pthread_mutex_tmutex,
const pthread_mutexattr_tattr 
)
static

Definition at line 100 of file os2threads.h.

Referenced by async_open(), av_thread_message_queue_alloc(), avf_read_header(), avpacket_queue_init(), decklink_input_callback::decklink_input_callback(), decklink_setup_video(), ff_alloc_entries(), ff_frame_thread_encoder_init(), ff_frame_thread_init(), ff_openssl_init(), fifo_init(), iec61883_read_header(), init(), main(), omx_encode_init(), udp_open(), update_dimensions(), and vtenc_init().

static av_always_inline int pthread_mutex_destroy ( pthread_mutex_tmutex )
static

Definition at line 108 of file os2threads.h.

Referenced by async_close(), async_open(), av_thread_message_queue_alloc(), av_thread_message_queue_free(), avpacket_queue_end(), cleanup(), destroy_context(), ff_decklink_write_trailer(), ff_frame_thread_encoder_free(), ff_frame_thread_free(), ff_openssl_deinit(), ff_slice_thread_free(), ffprobe_cleanup(), fifo_deinit(), free_buffers(), iec61883_close(), udp_close(), udp_open(), uninit(), vtenc_close(), and decklink_input_callback::~decklink_input_callback().

static av_always_inline int pthread_mutex_lock ( pthread_mutex_tmutex )
static

Definition at line 115 of file os2threads.h.

Referenced by pthread_cond_wait().

static av_always_inline int pthread_mutex_unlock ( pthread_mutex_tmutex )
static

Definition at line 122 of file os2threads.h.

Referenced by pthread_cond_wait().

static av_always_inline int pthread_cond_init ( pthread_cond_tcond,
const pthread_condattr_tattr 
)
static

Definition at line 129 of file os2threads.h.

Referenced by async_open(), av_thread_message_queue_alloc(), avf_read_header(), avpacket_queue_init(), decklink_setup_video(), ff_alloc_entries(), ff_frame_thread_encoder_init(), ff_frame_thread_init(), iec61883_read_header(), init(), omx_encode_init(), udp_open(), update_dimensions(), and vtenc_init().

static av_always_inline int pthread_cond_destroy ( pthread_cond_tcond )
static

Definition at line 140 of file os2threads.h.

Referenced by async_close(), async_open(), av_thread_message_queue_alloc(), av_thread_message_queue_free(), avpacket_queue_end(), cleanup(), destroy_context(), ff_decklink_write_trailer(), ff_frame_thread_encoder_free(), ff_frame_thread_free(), ff_slice_thread_free(), free_buffers(), iec61883_close(), udp_close(), udp_open(), uninit(), and vtenc_close().

static av_always_inline int pthread_cond_signal ( pthread_cond_tcond )
static

Definition at line 148 of file os2threads.h.

Referenced by async_buffer_task(), async_close(), async_read_internal(), async_seek(), avpacket_queue_put(), call_vmaf(), AVFFrameReceiver::captureOutput:didOutputSampleBuffer:fromConnection:, AVFAudioReceiver::captureOutput:didOutputSampleBuffer:fromConnection:, do_vmaf(), ff_frame_thread_free(), ff_thread_report_progress2(), ff_thread_video_encode_frame(), frame_worker_thread(), pthread_cond_broadcast(), submit_packet(), udp_close(), udp_write(), uninit(), vtenc_q_push(), and worker().

static av_always_inline int pthread_cond_broadcast ( pthread_cond_tcond )
static

Definition at line 158 of file os2threads.h.

Referenced by append_buffer(), async_unlock(), av_thread_message_flush(), av_thread_message_queue_set_err_recv(), av_thread_message_queue_set_err_send(), event_handler(), ff_frame_thread_encoder_free(), ff_thread_finish_setup(), ff_thread_get_format(), ff_thread_report_progress(), frame_worker_thread(), iec61883_callback(), iec61883_receive_task(), decklink_output_callback::ScheduledFrameCompleted(), and thread_get_buffer_internal().

static av_always_inline int pthread_cond_wait ( pthread_cond_tcond,
pthread_mutex_tmutex 
)
static

Definition at line 166 of file os2threads.h.

Referenced by async_buffer_task(), async_lock(), async_read_internal(), async_seek(), avf_read_packet(), avpacket_queue_get(), decklink_write_video_packet(), do_vmaf(), ff_thread_await_progress(), ff_thread_await_progress2(), ff_thread_decode_frame(), ff_thread_get_format(), ff_thread_video_encode_frame(), frame_worker_thread(), get_buffer(), iec61883_read_packet(), park_frame_worker_threads(), submit_packet(), thread_get_buffer_internal(), vtenc_q_pop(), wait_for_state(), and worker().

static av_always_inline int pthread_once ( pthread_once_tonce_control,
void(*)(voidinit_routine 
)
static

Definition at line 184 of file os2threads.h.

Referenced by ff_jni_get_env(), and vtenc_init().


Generated on Sun May 13 2018 02:04:10 for FFmpeg by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /