Back to index

lightning-sunbird  0.9+nobinonly
Defines | Typedefs | Enumerations | Functions | Variables
pthread.h File Reference
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PTHREAD_MUTEX_INITIALIZER   0
#define PTHREAD_COND_INITIALIZER   0

Typedefs

typedef typedef__BEGIN_DECLS
struct GUSIPThread
pthread_t
typedef struct GUSIPThreadAttr * pthread_attr_t
typedef struct GUSIPThreadKeypthread_key_t
typedef char pthread_once_t
typedef struct GUSIPThreadMutexpthread_mutex_t
typedef voidpthread_mutexattr_t
typedef struct GUSIPThreadCondpthread_cond_t
typedef voidpthread_condattr_t

Enumerations

enum  { PTHREAD_ONCE_INIT = 0 }
enum  { PTHREAD_CREATE_JOINABLE, PTHREAD_CREATE_DETACHED }

Functions

int pthread_attr_init (pthread_attr_t *attr)
int pthread_attr_destroy (pthread_attr_t *attr)
int pthread_attr_getdetachstate (const pthread_attr_t *attr, int *state)
int pthread_attr_setdetachstate (pthread_attr_t *attr, int state)
int pthread_attr_getstacksize (const pthread_attr_t *attr, size_t *size)
int pthread_attr_setstacksize (pthread_attr_t *attr, size_t size)
__END_DECLS int pthread_create (pthread_t *thread, const pthread_attr_t *attr, GUSIPThreadProc proc, void *arg)
int pthread_detach (pthread_t thread)
int pthread_join (pthread_t thread, void **value)
int pthread_exit (void *value)
__END_DECLS int pthread_key_create (pthread_key_t *key, GUSIPThreadKeyDestructor destructor)
int pthread_key_delete (pthread_key_t key)
voidpthread_getspecific (pthread_key_t key)
int pthread_setspecific (pthread_key_t key, void *value)
int pthread_mutexattr_init (pthread_mutexattr_t *attr)
int pthread_mutexattr_destroy (pthread_mutexattr_t *attr)
int pthread_mutex_init (pthread_mutex_t *mutex, const pthread_mutexattr_t *)
int pthread_mutex_destroy (pthread_mutex_t *mutex)
int pthread_mutex_lock (pthread_mutex_t *mutex)
int pthread_mutex_trylock (pthread_mutex_t *mutex)
int pthread_mutex_unlock (pthread_mutex_t *mutex)
int pthread_condattr_init (pthread_condattr_t *attr)
int pthread_condattr_destroy (pthread_condattr_t *attr)
int pthread_cond_init (pthread_cond_t *cond, const pthread_condattr_t *)
int pthread_cond_destroy (pthread_cond_t *cond)
int pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex)
int pthread_cond_timedwait (pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *patience)
int pthread_cond_signal (pthread_cond_t *cond)
int pthread_cond_broadcast (pthread_cond_t *cond)
pthread_t pthread_self (void)
int pthread_equal (pthread_t t1, pthread_t t2)
__END_DECLS int pthread_once (pthread_once_t *once_block, GUSIPThreadOnceProc proc)

Variables

__BEGIN_DECLS typedef void *(* GUSIPThreadProc )(void *)
__BEGIN_DECLS typedef void(* GUSIPThreadKeyDestructor )(void *)
__BEGIN_DECLS typedef void(* GUSIPThreadOnceProc )(void)

Define Documentation

Definition at line 128 of file pthread.h.

Definition at line 120 of file pthread.h.


Typedef Documentation

typedef struct GUSIPThreadAttr* pthread_attr_t

Definition at line 97 of file pthread.h.

Definition at line 125 of file pthread.h.

Definition at line 126 of file pthread.h.

typedef struct GUSIPThreadKey* pthread_key_t

Definition at line 101 of file pthread.h.

Definition at line 117 of file pthread.h.

Definition at line 118 of file pthread.h.

typedef char pthread_once_t

Definition at line 107 of file pthread.h.

typedef typedef__BEGIN_DECLS struct GUSIPThread* pthread_t

Definition at line 92 of file pthread.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
PTHREAD_ONCE_INIT 

Definition at line 109 of file pthread.h.

anonymous enum
Enumerator:
PTHREAD_CREATE_JOINABLE 
PTHREAD_CREATE_DETACHED 

Definition at line 142 of file pthread.h.


Function Documentation

Here is the caller graph for this function:

int pthread_attr_getstacksize ( const pthread_attr_t attr,
size_t *  size 
)

Here is the caller graph for this function:

Here is the caller graph for this function:

int pthread_attr_setstacksize ( pthread_attr_t attr,
size_t  size 
)

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

int pthread_cond_timedwait ( pthread_cond_t cond,
pthread_mutex_t mutex,
const struct timespec patience 
)

Here is the caller graph for this function:

Here is the caller graph for this function:

__END_DECLS int pthread_create ( pthread_t thread,
const pthread_attr_t attr,
GUSIPThreadProc  proc,
void arg 
)

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

int pthread_exit ( void value)

Here is the caller graph for this function:

Here is the caller graph for this function:

int pthread_join ( pthread_t  thread,
void **  value 
)

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

int pthread_setspecific ( pthread_key_t  key,
void value 
)

Here is the caller graph for this function:


Variable Documentation

Definition at line 196 of file pthread.h.

Definition at line 293 of file pthread.h.

Definition at line 162 of file pthread.h.