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

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

Macro Definition Documentation

◆ PTHREAD_MUTEX_INITIALIZER

#define PTHREAD_MUTEX_INITIALIZER   pthread_mutex_initializer()

◆ PTHREAD_ONCE_INIT

#define PTHREAD_ONCE_INIT   0

◆ sched_get_priority_max

#define sched_get_priority_max (   policy)    +2

◆ sched_get_priority_min

#define sched_get_priority_min (   policy)    -2

◆ SEM_FAILED

#define SEM_FAILED   0

Typedef Documentation

◆ pthread_key_t

typedef unsigned int pthread_key_t

◆ pthread_mutex_t

typedef void* pthread_mutex_t

◆ pthread_mutexattr_t

typedef void* pthread_mutexattr_t

◆ pthread_once_t

typedef intptr_t pthread_once_t

◆ pthread_t

typedef uintptr_t pthread_t

◆ sem_t

typedef uintptr_t sem_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SCHED_RR 
SCHED_FIFO 
SCHED_OTHER 

◆ anonymous enum

anonymous enum
Enumerator
PTHREAD_MUTEX_RECURSIVE 

Function Documentation

◆ pthread_cancel()

int pthread_cancel ( pthread_t  thread)

◆ pthread_create()

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

◆ pthread_equal()

int pthread_equal ( pthread_t  t1,
pthread_t  t2 
)

◆ pthread_getschedparam()

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

◆ pthread_getspecific()

void* pthread_getspecific ( pthread_key_t  )

◆ pthread_join()

int pthread_join ( pthread_t  thread,
void **  value_ptr 
)

◆ pthread_key_create()

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

◆ pthread_key_delete()

int pthread_key_delete ( pthread_key_t  )

◆ pthread_mutex_destroy()

int pthread_mutex_destroy ( pthread_mutex_t )

◆ pthread_mutex_init()

int pthread_mutex_init ( pthread_mutex_t ,
const pthread_mutexattr_t  
)

◆ pthread_mutex_initializer()

pthread_mutex_t pthread_mutex_initializer ( )

◆ pthread_mutex_lock()

int pthread_mutex_lock ( pthread_mutex_t )

◆ pthread_mutex_timedlock()

int pthread_mutex_timedlock ( pthread_mutex_t ,
const struct timespec *   
)

◆ pthread_mutex_trylock()

int pthread_mutex_trylock ( pthread_mutex_t )

◆ pthread_mutex_unlock()

int pthread_mutex_unlock ( pthread_mutex_t )

◆ pthread_mutexattr_destroy()

int pthread_mutexattr_destroy ( pthread_mutexattr_t attr)

◆ pthread_mutexattr_gettype()

int pthread_mutexattr_gettype ( const pthread_mutexattr_t attr,
int *  type 
)

◆ pthread_mutexattr_init()

int pthread_mutexattr_init ( pthread_mutexattr_t attr)

◆ pthread_mutexattr_settype()

int pthread_mutexattr_settype ( pthread_mutexattr_t attr,
int  type 
)

◆ pthread_once()

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

◆ pthread_self()

pthread_t pthread_self ( )

◆ pthread_setschedparam()

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

◆ pthread_setspecific()

int pthread_setspecific ( pthread_key_t  ,
const void *  value 
)

◆ sem_close()

int sem_close ( sem_t sem)

◆ sem_destroy()

int sem_destroy ( sem_t )

◆ sem_init()

int sem_init ( sem_t ,
int  pshared,
unsigned  value 
)

◆ sem_msgwait_np()

int sem_msgwait_np ( sem_t sem)

◆ sem_open()

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

◆ sem_post()

int sem_post ( sem_t )

◆ sem_timedwait()

int sem_timedwait ( sem_t ,
const struct timespec *   
)

◆ sem_unlink()

int sem_unlink ( const char *  name)

◆ sem_wait()

int sem_wait ( sem_t )