Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Enumerations | Functions
wpthread.h File Reference

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()

Definition at line 84 of file wpthread.h.

#define PTHREAD_ONCE_INIT   0

Definition at line 58 of file wpthread.h.

#define sched_get_priority_max (   policy)    +2

Definition at line 48 of file wpthread.h.

#define sched_get_priority_min (   policy)    -2

Definition at line 49 of file wpthread.h.

#define SEM_FAILED   0

Definition at line 107 of file wpthread.h.

Typedef Documentation

typedef unsigned int pthread_key_t

Definition at line 93 of file wpthread.h.

typedef void* pthread_mutex_t

Definition at line 82 of file wpthread.h.

typedef void* pthread_mutexattr_t

Definition at line 75 of file wpthread.h.

typedef intptr_t pthread_once_t

Definition at line 57 of file wpthread.h.

typedef uintptr_t pthread_t

Definition at line 63 of file wpthread.h.

typedef uintptr_t sem_t

Definition at line 105 of file wpthread.h.

Enumeration Type Documentation

anonymous enum
Enumerator
SCHED_RR 
SCHED_FIFO 
SCHED_OTHER 

Definition at line 40 of file wpthread.h.

anonymous enum
Enumerator
PTHREAD_MUTEX_RECURSIVE 

Definition at line 78 of file wpthread.h.

Function Documentation

LIB_API int pthread_cancel ( pthread_t  thread)

Definition at line 670 of file wpthread.cpp.

LIB_API int pthread_create ( pthread_t thread,
const void *  attr,
void *(*)(void *)  func,
void *  arg 
)

Definition at line 636 of file wpthread.cpp.

LIB_API int pthread_equal ( pthread_t  t1,
pthread_t  t2 
)

Definition at line 69 of file wpthread.cpp.

LIB_API int pthread_getschedparam ( pthread_t  thread,
int *  policy,
struct sched_param param 
)

Definition at line 88 of file wpthread.cpp.

LIB_API void* pthread_getspecific ( pthread_key_t  )

Definition at line 184 of file wpthread.cpp.

LIB_API int pthread_join ( pthread_t  thread,
void **  value_ptr 
)

Definition at line 679 of file wpthread.cpp.

LIB_API int pthread_key_create ( pthread_key_t ,
void(*)(void *)  dtor 
)

Definition at line 146 of file wpthread.cpp.

LIB_API int pthread_key_delete ( pthread_key_t  )

Definition at line 173 of file wpthread.cpp.

LIB_API int pthread_mutex_destroy ( pthread_mutex_t )

Definition at line 312 of file wpthread.cpp.

LIB_API int pthread_mutex_init ( pthread_mutex_t ,
const pthread_mutexattr_t  
)

Definition at line 323 of file wpthread.cpp.

LIB_API pthread_mutex_t pthread_mutex_initializer ( )

Definition at line 305 of file wpthread.cpp.

LIB_API int pthread_mutex_lock ( pthread_mutex_t )

Definition at line 329 of file wpthread.cpp.

LIB_API int pthread_mutex_timedlock ( pthread_mutex_t ,
const struct timespec  
)

Definition at line 358 of file wpthread.cpp.

LIB_API int pthread_mutex_trylock ( pthread_mutex_t )

Definition at line 338 of file wpthread.cpp.

LIB_API int pthread_mutex_unlock ( pthread_mutex_t )

Definition at line 347 of file wpthread.cpp.

LIB_API int pthread_mutexattr_destroy ( pthread_mutexattr_t attr)

Definition at line 278 of file wpthread.cpp.

LIB_API int pthread_mutexattr_gettype ( const pthread_mutexattr_t attr,
int *  type 
)

Definition at line 283 of file wpthread.cpp.

LIB_API int pthread_mutexattr_init ( pthread_mutexattr_t attr)

Definition at line 273 of file wpthread.cpp.

LIB_API int pthread_mutexattr_settype ( pthread_mutexattr_t attr,
int  type 
)

Definition at line 289 of file wpthread.cpp.

LIB_API int pthread_once ( pthread_once_t ,
void(*)()  init_routine 
)

Definition at line 80 of file wpthread.cpp.

LIB_API pthread_t pthread_self ( )

Definition at line 74 of file wpthread.cpp.

LIB_API int pthread_setschedparam ( pthread_t  thread,
int  policy,
const struct sched_param param 
)

Definition at line 104 of file wpthread.cpp.

LIB_API int pthread_setspecific ( pthread_key_t  ,
const void *  value 
)

Definition at line 210 of file wpthread.cpp.

LIB_API int sem_close ( sem_t sem)

Definition at line 429 of file wpthread.cpp.

LIB_API int sem_destroy ( sem_t )

Definition at line 454 of file wpthread.cpp.

LIB_API int sem_init ( sem_t ,
int  pshared,
unsigned  value 
)

Definition at line 444 of file wpthread.cpp.

LIB_API int sem_msgwait_np ( sem_t sem)

Definition at line 557 of file wpthread.cpp.

LIB_API sem_t* sem_open ( const char *  name,
int  oflag,
  ... 
)

Definition at line 373 of file wpthread.cpp.

LIB_API int sem_post ( sem_t )

Definition at line 461 of file wpthread.cpp.

LIB_API int sem_timedwait ( sem_t ,
const struct timespec  
)

Definition at line 520 of file wpthread.cpp.

LIB_API int sem_unlink ( const char *  name)

Definition at line 438 of file wpthread.cpp.

LIB_API int sem_wait ( sem_t )

Definition at line 468 of file wpthread.cpp.