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

os2threads to pthreads wrapper More...

#include <os2.h>
#include <stdlib.h>
#include "libavutil/mem.h"

Go to the source code of this file.

Data Structures

struct   pthread_cond_t
 
struct   thread_arg
 

Macros

#define  INCL_DOS
 

Typedefs

typedef TID  pthread_t
 
typedef void  pthread_attr_t
 
typedef HMTX  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)
 
 
 
 
 
 
 
 
 
 

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.

Typedef Documentation

typedef TID pthread_t

Definition at line 37 of file os2threads.h.

Definition at line 38 of file os2threads.h.

typedef HMTX pthread_mutex_t

Definition at line 40 of file os2threads.h.

Definition at line 41 of file os2threads.h.

Definition at line 48 of file os2threads.h.

Function Documentation

static void thread_entry ( voidarg )
static

Definition at line 55 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 64 of file os2threads.h.

Referenced by ff_frame_thread_encoder_init(), ff_frame_thread_init(), ff_slice_thread_init(), iec61883_read_header(), Stagefright_decode_frame(), thread_init_internal(), and udp_open().

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

Definition at line 78 of file os2threads.h.

Referenced by ff_frame_thread_encoder_free(), ff_frame_thread_free(), ff_slice_thread_free(), iec61883_close(), slice_thread_uninit(), Stagefright_close(), and udp_close().

static av_always_inline int pthread_mutex_init ( pthread_mutex_tmutex,
const pthread_mutexattr_tattr 
)
static

Definition at line 85 of file os2threads.h.

Referenced by av_thread_message_queue_alloc(), avf_read_header(), avpacket_queue_init(), decklink_input_callback::decklink_input_callback(), ff_alloc_entries(), ff_frame_thread_encoder_init(), ff_frame_thread_init(), ff_slice_thread_init(), ff_tls_init(), iec61883_read_header(), init_opencl_mtx(), qtkit_read_header(), Stagefright_init(), thread_init_internal(), udp_open(), and update_dimensions().

static av_always_inline int pthread_mutex_destroy ( pthread_mutex_tmutex )
static

Definition at line 92 of file os2threads.h.

Referenced by av_thread_message_queue_alloc(), av_thread_message_queue_free(), avpacket_queue_end(), destroy_context(), ff_frame_thread_encoder_free(), ff_frame_thread_free(), ff_slice_thread_free(), ff_tls_deinit(), free_buffers(), iec61883_close(), init_opencl_mtx(), slice_thread_uninit(), Stagefright_close(), udp_close(), udp_open(), and decklink_input_callback::~decklink_input_callback().

static av_always_inline int pthread_mutex_lock ( pthread_mutex_tmutex )
static

Definition at line 99 of file os2threads.h.

Referenced by decklink_input_callback::AddRef(), av_log_default_callback(), av_thread_message_queue_recv(), av_thread_message_queue_send(), av_thread_message_queue_set_err_recv(), av_thread_message_queue_set_err_send(), avpacket_queue_flush(), avpacket_queue_get(), avpacket_queue_put(), avpacket_queue_size(), decode_thread(), ff_frame_thread_encoder_free(), ff_frame_thread_free(), ff_slice_thread_free(), ff_slice_thread_init(), ff_thread_await_progress(), ff_thread_await_progress2(), ff_thread_decode_frame(), ff_thread_finish_setup(), ff_thread_get_format(), ff_thread_release_buffer(), ff_thread_report_progress(), ff_thread_report_progress2(), ff_thread_video_encode_frame(), frame_worker_thread(), iec61883_callback(), iec61883_read_packet(), iec61883_receive_task(), lock_frames(), park_frame_worker_threads(), pthread_cond_wait(), CustomSource::read(), decklink_input_callback::Release(), release_delayed_buffers(), slice_thread_uninit(), Stagefright_close(), Stagefright_decode_frame(), submit_packet(), thread_execute(), thread_get_buffer_internal(), thread_init_internal(), udp_read(), and worker().

static av_always_inline int pthread_mutex_unlock ( pthread_mutex_tmutex )
static

Definition at line 106 of file os2threads.h.

Referenced by decklink_input_callback::AddRef(), av_log_default_callback(), av_thread_message_queue_recv(), av_thread_message_queue_send(), av_thread_message_queue_set_err_recv(), av_thread_message_queue_set_err_send(), avpacket_queue_flush(), avpacket_queue_get(), avpacket_queue_put(), avpacket_queue_size(), decode_thread(), ff_frame_thread_encoder_free(), ff_frame_thread_free(), ff_slice_thread_free(), ff_slice_thread_init(), ff_thread_await_progress(), ff_thread_await_progress2(), ff_thread_decode_frame(), ff_thread_finish_setup(), ff_thread_get_format(), ff_thread_release_buffer(), ff_thread_report_progress(), ff_thread_report_progress2(), ff_thread_video_encode_frame(), frame_worker_thread(), iec61883_callback(), iec61883_read_packet(), iec61883_receive_task(), park_frame_worker_threads(), pthread_cond_wait(), CustomSource::read(), decklink_input_callback::Release(), release_delayed_buffers(), slice_thread_park_workers(), slice_thread_uninit(), Stagefright_close(), Stagefright_decode_frame(), submit_packet(), thread_get_buffer_internal(), thread_init_internal(), thread_park_workers(), udp_read(), unlock_frames(), and worker().

static av_always_inline int pthread_cond_init ( pthread_cond_tcond,
const pthread_condattr_tattr 
)
static

Definition at line 113 of file os2threads.h.

Referenced by av_thread_message_queue_alloc(), avf_read_header(), avpacket_queue_init(), ff_alloc_entries(), ff_frame_thread_encoder_init(), ff_frame_thread_init(), ff_slice_thread_init(), iec61883_read_header(), qtkit_read_header(), Stagefright_init(), thread_init_internal(), udp_open(), and update_dimensions().

static av_always_inline int pthread_cond_destroy ( pthread_cond_tcond )
static

Definition at line 122 of file os2threads.h.

Referenced by av_thread_message_queue_alloc(), av_thread_message_queue_free(), avpacket_queue_end(), destroy_context(), ff_frame_thread_encoder_free(), ff_frame_thread_free(), ff_slice_thread_free(), free_buffers(), iec61883_close(), slice_thread_uninit(), Stagefright_close(), udp_close(), and udp_open().

static av_always_inline int pthread_cond_signal ( pthread_cond_tcond )
static

Definition at line 129 of file os2threads.h.

Referenced by avpacket_queue_put(), AVFFrameReceiver::captureOutput:didOutputSampleBuffer:fromConnection:, AVFAudioReceiver::captureOutput:didOutputSampleBuffer:fromConnection:, FFMPEG_FrameReceiver::captureOutput:didOutputVideoFrame:withSampleBuffer:fromConnection:, ff_frame_thread_free(), ff_thread_report_progress2(), ff_thread_video_encode_frame(), frame_worker_thread(), Stagefright_close(), Stagefright_decode_frame(), submit_packet(), and worker().

static av_always_inline int pthread_cond_broadcast ( pthread_cond_tcond )
static

Definition at line 140 of file os2threads.h.

Referenced by av_thread_message_queue_set_err_recv(), av_thread_message_queue_set_err_send(), ff_frame_thread_encoder_free(), ff_slice_thread_free(), ff_thread_finish_setup(), ff_thread_get_format(), ff_thread_report_progress(), frame_worker_thread(), iec61883_callback(), iec61883_receive_task(), slice_thread_uninit(), thread_execute(), and thread_get_buffer_internal().

static av_always_inline int pthread_cond_wait ( pthread_cond_tcond,
pthread_mutex_tmutex 
)
static

Definition at line 151 of file os2threads.h.

Referenced by avf_read_packet(), avpacket_queue_get(), ff_thread_await_progress(), ff_thread_await_progress2(), ff_thread_decode_frame(), ff_thread_get_format(), ff_thread_video_encode_frame(), frame_worker_thread(), iec61883_read_packet(), park_frame_worker_threads(), qtkit_read_packet(), CustomSource::read(), slice_thread_park_workers(), submit_packet(), thread_get_buffer_internal(), thread_park_workers(), and worker().


Generated on Sun Mar 8 2015 02:35:16 for FFmpeg by   doxygen 1.8.2

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