FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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
 
union  pthread_once_t
 

Macros

#define INCL_DOS
 
#define PTHREAD_ONCE_INIT   {0, _FMUTEX_INITIALIZER}
 

Typedefs

typedef void pthread_attr_t
 
typedef HMTX pthread_mutex_t
 
typedef void pthread_mutexattr_t
 
typedef void pthread_condattr_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_mutex_init (pthread_mutex_t *mutex, const pthread_mutexattr_t *attr)
 
static av_always_inline int pthread_mutex_destroy (pthread_mutex_t *mutex)
 
static av_always_inline int pthread_mutex_lock (pthread_mutex_t *mutex)
 
static av_always_inline int pthread_mutex_unlock (pthread_mutex_t *mutex)
 
static av_always_inline int pthread_cond_init (pthread_cond_t *cond, const pthread_condattr_t *attr)
 
static av_always_inline int pthread_cond_destroy (pthread_cond_t *cond)
 
static av_always_inline int pthread_cond_signal (pthread_cond_t *cond)
 
static av_always_inline int pthread_cond_broadcast (pthread_cond_t *cond)
 
static av_always_inline int pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex)
 
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_ONCE_INIT   {0, _FMUTEX_INITIALIZER}

Definition at line 65 of file os2threads.h.

Typedef Documentation

Definition at line 47 of file os2threads.h.

typedef HMTX pthread_mutex_t

Definition at line 49 of file os2threads.h.

Definition at line 50 of file os2threads.h.

Definition at line 58 of file os2threads.h.

Function Documentation

static void thread_entry ( void arg)
static

Definition at line 67 of file os2threads.h.

Referenced by pthread_create().

static av_always_inline int pthread_create ( pthread_t thread,
const pthread_attr_t attr,
void *(*)(void *)  start_routine,
void arg 
)
static
static av_always_inline int pthread_join ( pthread_t  thread,
void **  value_ptr 
)
static
static av_always_inline int pthread_mutex_init ( pthread_mutex_t mutex,
const pthread_mutexattr_t attr 
)
static
static av_always_inline int pthread_mutex_destroy ( pthread_mutex_t mutex)
static
static av_always_inline int pthread_mutex_lock ( pthread_mutex_t mutex)
static
static av_always_inline int pthread_mutex_unlock ( pthread_mutex_t mutex)
static
static av_always_inline int pthread_cond_init ( pthread_cond_t cond,
const pthread_condattr_t attr 
)
static
static av_always_inline int pthread_cond_destroy ( pthread_cond_t cond)
static
static av_always_inline int pthread_cond_signal ( pthread_cond_t cond)
static
static av_always_inline int pthread_cond_broadcast ( pthread_cond_t cond)
static
static av_always_inline int pthread_cond_wait ( pthread_cond_t cond,
pthread_mutex_t mutex 
)
static
static av_always_inline int pthread_once ( pthread_once_t once_control,
void(*)(void init_routine 
)
static

Definition at line 182 of file os2threads.h.

Referenced by ff_jni_get_env(), and vtenc_init().