Pyrogenesis  trunk
Classes | Macros | Typedefs | Enumerations | Functions
wpthread.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sched_param
 

Macros

#define sched_get_priority_max(policy)   +2
 
#define sched_get_priority_min(policy)   -2
 
#define PTHREAD_ONCE_INIT   0
 
#define PTHREAD_MUTEX_INITIALIZER   pthread_mutex_initializer()
 
#define SEM_FAILED   0
 

Typedefs

typedef intptr_t pthread_once_t
 
typedef uintptr_t pthread_t
 
typedef void * pthread_mutexattr_t
 
typedef void * pthread_mutex_t
 
typedef unsigned int pthread_key_t
 
typedef uintptr_t sem_t
 

Enumerations

enum  { SCHED_RR, SCHED_FIFO, SCHED_OTHER }
 
enum  { PTHREAD_MUTEX_RECURSIVE }
 

Functions

LIB_API int pthread_once (pthread_once_t *, void(*init_routine)())
 
LIB_API int pthread_equal (pthread_t t1, pthread_t t2)
 
LIB_API pthread_t pthread_self ()
 
LIB_API int pthread_getschedparam (pthread_t thread, int *policy, struct sched_param *param)
 
LIB_API int pthread_setschedparam (pthread_t thread, int policy, const struct sched_param *param)
 
LIB_API int pthread_create (pthread_t *thread, const void *attr, void *(*func)(void *), void *arg)
 
LIB_API int pthread_cancel (pthread_t thread)
 
LIB_API int pthread_join (pthread_t thread, void **value_ptr)
 
LIB_API int pthread_mutexattr_init (pthread_mutexattr_t *attr)
 
LIB_API int pthread_mutexattr_destroy (pthread_mutexattr_t *attr)
 
LIB_API int pthread_mutexattr_gettype (const pthread_mutexattr_t *attr, int *type)
 
LIB_API int pthread_mutexattr_settype (pthread_mutexattr_t *attr, int type)
 
LIB_API pthread_mutex_t pthread_mutex_initializer ()
 
LIB_API int pthread_mutex_init (pthread_mutex_t *, const pthread_mutexattr_t *)
 
LIB_API int pthread_mutex_destroy (pthread_mutex_t *)
 
LIB_API int pthread_mutex_lock (pthread_mutex_t *)
 
LIB_API int pthread_mutex_trylock (pthread_mutex_t *)
 
LIB_API int pthread_mutex_unlock (pthread_mutex_t *)
 
LIB_API int pthread_mutex_timedlock (pthread_mutex_t *, const struct timespec *)
 
LIB_API int pthread_key_create (pthread_key_t *, void(*dtor)(void *))
 
LIB_API int pthread_key_delete (pthread_key_t)
 
LIB_API void * pthread_getspecific (pthread_key_t)
 
LIB_API int pthread_setspecific (pthread_key_t, const void *value)
 
LIB_API sem_tsem_open (const char *name, int oflag,...)
 
LIB_API int sem_close (sem_t *sem)
 
LIB_API int sem_unlink (const char *name)
 
LIB_API int sem_init (sem_t *, int pshared, unsigned value)
 
LIB_API int sem_destroy (sem_t *)
 
LIB_API int sem_post (sem_t *)
 
LIB_API int sem_wait (sem_t *)
 
LIB_API int sem_timedwait (sem_t *, const struct timespec *)
 
LIB_API int sem_msgwait_np (sem_t *sem)
 

Macro Definition Documentation

#define PTHREAD_MUTEX_INITIALIZER   pthread_mutex_initializer()
#define PTHREAD_ONCE_INIT   0
#define sched_get_priority_max (   policy)    +2
#define sched_get_priority_min (   policy)    -2
#define SEM_FAILED   0

Typedef Documentation

typedef unsigned int pthread_key_t
typedef void* pthread_mutex_t
typedef void* pthread_mutexattr_t
typedef intptr_t pthread_once_t
typedef uintptr_t pthread_t
typedef uintptr_t sem_t

Enumeration Type Documentation

anonymous enum
Enumerator
SCHED_RR 
SCHED_FIFO 
SCHED_OTHER 
anonymous enum
Enumerator
PTHREAD_MUTEX_RECURSIVE 

Function Documentation

LIB_API int pthread_cancel ( pthread_t  thread)
LIB_API int pthread_create ( pthread_t thread,
const void *  attr,
void *(*)(void *)  func,
void *  arg 
)
LIB_API int pthread_equal ( pthread_t  t1,
pthread_t  t2 
)
LIB_API int pthread_getschedparam ( pthread_t  thread,
int *  policy,
struct sched_param param 
)
LIB_API void* pthread_getspecific ( pthread_key_t  )
LIB_API int pthread_join ( pthread_t  thread,
void **  value_ptr 
)
LIB_API int pthread_key_create ( pthread_key_t ,
void(*)(void *)  dtor 
)
LIB_API int pthread_key_delete ( pthread_key_t  )
LIB_API int pthread_mutex_destroy ( pthread_mutex_t )
LIB_API int pthread_mutex_init ( pthread_mutex_t ,
const pthread_mutexattr_t  
)
LIB_API pthread_mutex_t pthread_mutex_initializer ( )
LIB_API int pthread_mutex_lock ( pthread_mutex_t )
LIB_API int pthread_mutex_timedlock ( pthread_mutex_t ,
const struct timespec  
)
LIB_API int pthread_mutex_trylock ( pthread_mutex_t )
LIB_API int pthread_mutex_unlock ( pthread_mutex_t )
LIB_API int pthread_mutexattr_destroy ( pthread_mutexattr_t attr)
LIB_API int pthread_mutexattr_gettype ( const pthread_mutexattr_t attr,
int *  type 
)
LIB_API int pthread_mutexattr_init ( pthread_mutexattr_t attr)
LIB_API int pthread_mutexattr_settype ( pthread_mutexattr_t attr,
int  type 
)
LIB_API int pthread_once ( pthread_once_t ,
void(*)()  init_routine 
)
LIB_API pthread_t pthread_self ( )
LIB_API int pthread_setschedparam ( pthread_t  thread,
int  policy,
const struct sched_param param 
)
LIB_API int pthread_setspecific ( pthread_key_t  ,
const void *  value 
)
LIB_API int sem_close ( sem_t sem)
LIB_API int sem_destroy ( sem_t )
LIB_API int sem_init ( sem_t ,
int  pshared,
unsigned  value 
)
LIB_API int sem_msgwait_np ( sem_t sem)
LIB_API sem_t* sem_open ( const char *  name,
int  oflag,
  ... 
)
LIB_API int sem_post ( sem_t )
LIB_API int sem_timedwait ( sem_t ,
const struct timespec  
)
LIB_API int sem_unlink ( const char *  name)
LIB_API int sem_wait ( sem_t )