gthr-posix.h File Reference

#include <pthread.h>
#include <unistd.h>

Go to the source code of this file.

Defines

#define __GTHREADS   1
#define __GTHREAD_MUTEX_INIT   PTHREAD_MUTEX_INITIALIZER
#define __GTHREAD_ONCE_INIT   PTHREAD_ONCE_INIT
#define __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION   __gthread_recursive_mutex_init_function
#define __gthrw_pthread_once   pthread_once
#define __gthrw_pthread_key_create   pthread_key_create
#define __gthrw_pthread_key_delete   pthread_key_delete
#define __gthrw_pthread_getspecific   pthread_getspecific
#define __gthrw_pthread_setspecific   pthread_setspecific
#define __gthrw_pthread_create   pthread_create
#define __gthrw_pthread_mutex_lock   pthread_mutex_lock
#define __gthrw_pthread_mutex_trylock   pthread_mutex_trylock
#define __gthrw_pthread_mutex_unlock   pthread_mutex_unlock
#define __gthrw_pthread_mutexattr_init   pthread_mutexattr_init
#define __gthrw_pthread_mutexattr_settype   pthread_mutexattr_settype
#define __gthrw_pthread_mutexattr_destroy   pthread_mutexattr_destroy
#define __gthrw_pthread_mutex_init   pthread_mutex_init

Typedefs

typedef pthread_key_t __gthread_key_t
typedef pthread_once_t __gthread_once_t
typedef pthread_mutex_t __gthread_mutex_t
typedef pthread_mutex_t __gthread_recursive_mutex_t

Functions

int __gthread_active_p (void)
int __gthread_once (__gthread_once_t *once, void(*func)(void))
int __gthread_key_create (__gthread_key_t *key, void(*dtor)(void *))
int __gthread_key_delete (__gthread_key_t key)
void * __gthread_getspecific (__gthread_key_t key)
int __gthread_setspecific (__gthread_key_t key, const void *ptr)
int __gthread_mutex_lock (__gthread_mutex_t *mutex)
int __gthread_mutex_trylock (__gthread_mutex_t *mutex)
int __gthread_mutex_unlock (__gthread_mutex_t *mutex)
int __gthread_recursive_mutex_init_function (__gthread_recursive_mutex_t *mutex)
int __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *mutex)
int __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *mutex)
int __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *mutex)


Define Documentation

#define __GTHREAD_MUTEX_INIT   PTHREAD_MUTEX_INITIALIZER
 

Definition at line 51 of file gthr-posix.h.

#define __GTHREAD_ONCE_INIT   PTHREAD_ONCE_INIT
 

Definition at line 52 of file gthr-posix.h.

#define __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION   __gthread_recursive_mutex_init_function
 

Definition at line 58 of file gthr-posix.h.

#define __GTHREADS   1
 

Definition at line 36 of file gthr-posix.h.

#define __gthrw_pthread_create   pthread_create
 

Definition at line 159 of file gthr-posix.h.

#define __gthrw_pthread_getspecific   pthread_getspecific
 

Definition at line 157 of file gthr-posix.h.

#define __gthrw_pthread_key_create   pthread_key_create
 

Definition at line 155 of file gthr-posix.h.

#define __gthrw_pthread_key_delete   pthread_key_delete
 

Definition at line 156 of file gthr-posix.h.

#define __gthrw_pthread_mutex_init   pthread_mutex_init
 

Definition at line 168 of file gthr-posix.h.

#define __gthrw_pthread_mutex_lock   pthread_mutex_lock
 

Definition at line 161 of file gthr-posix.h.

#define __gthrw_pthread_mutex_trylock   pthread_mutex_trylock
 

Definition at line 162 of file gthr-posix.h.

#define __gthrw_pthread_mutex_unlock   pthread_mutex_unlock
 

Definition at line 163 of file gthr-posix.h.

#define __gthrw_pthread_mutexattr_destroy   pthread_mutexattr_destroy
 

Definition at line 166 of file gthr-posix.h.

#define __gthrw_pthread_mutexattr_init   pthread_mutexattr_init
 

Definition at line 164 of file gthr-posix.h.

#define __gthrw_pthread_mutexattr_settype   pthread_mutexattr_settype
 

Definition at line 165 of file gthr-posix.h.

#define __gthrw_pthread_once   pthread_once
 

Definition at line 154 of file gthr-posix.h.

#define __gthrw_pthread_setspecific   pthread_setspecific
 

Definition at line 158 of file gthr-posix.h.


Typedef Documentation

typedef pthread_key_t __gthread_key_t
 

Definition at line 46 of file gthr-posix.h.

typedef pthread_mutex_t __gthread_mutex_t
 

Definition at line 48 of file gthr-posix.h.

typedef pthread_once_t __gthread_once_t
 

Definition at line 47 of file gthr-posix.h.

typedef pthread_mutex_t __gthread_recursive_mutex_t
 

Definition at line 49 of file gthr-posix.h.


Function Documentation

int __gthread_active_p void   )  [inline, static]
 

Definition at line 210 of file gthr-posix.h.

void* __gthread_getspecific __gthread_key_t  key  )  [inline, static]
 

Definition at line 584 of file gthr-posix.h.

References __gthrw_pthread_getspecific.

Referenced by __gnu_cxx::__mt_alloc< _Tp >::_S_get_thread_id().

int __gthread_key_create __gthread_key_t key,
void(*  dtor)(void *)
[inline, static]
 

Definition at line 572 of file gthr-posix.h.

References __gthrw_pthread_key_create.

Referenced by __gnu_cxx::__mt_alloc< _Tp >::_S_initialize().

int __gthread_key_delete __gthread_key_t  key  )  [inline, static]
 

Definition at line 578 of file gthr-posix.h.

References __gthrw_pthread_key_delete.

int __gthread_mutex_lock __gthread_mutex_t mutex  )  [inline, static]
 

Definition at line 596 of file gthr-posix.h.

References __gthread_active_p(), and __gthrw_pthread_mutex_lock.

int __gthread_mutex_trylock __gthread_mutex_t mutex  )  [inline, static]
 

Definition at line 605 of file gthr-posix.h.

References __gthread_active_p(), and __gthrw_pthread_mutex_trylock.

int __gthread_mutex_unlock __gthread_mutex_t mutex  )  [inline, static]
 

Definition at line 614 of file gthr-posix.h.

References __gthread_active_p(), and __gthrw_pthread_mutex_unlock.

int __gthread_once __gthread_once_t once,
void(*  func)(void)
[inline, static]
 

Definition at line 563 of file gthr-posix.h.

References __gthread_active_p(), and __gthrw_pthread_once.

Referenced by __gnu_cxx::_STL_mutex_lock::_M_initialize(), and __gnu_cxx::__mt_alloc< _Tp >::allocate().

int __gthread_recursive_mutex_init_function __gthread_recursive_mutex_t mutex  )  [inline, static]
 

Definition at line 624 of file gthr-posix.h.

References __gthread_active_p(), __gthrw_pthread_mutex_init, __gthrw_pthread_mutexattr_destroy, __gthrw_pthread_mutexattr_init, and __gthrw_pthread_mutexattr_settype.

int __gthread_recursive_mutex_lock __gthread_recursive_mutex_t mutex  )  [inline, static]
 

Definition at line 644 of file gthr-posix.h.

References __gthread_mutex_lock().

int __gthread_recursive_mutex_trylock __gthread_recursive_mutex_t mutex  )  [inline, static]
 

Definition at line 650 of file gthr-posix.h.

References __gthread_mutex_trylock().

int __gthread_recursive_mutex_unlock __gthread_recursive_mutex_t mutex  )  [inline, static]
 

Definition at line 656 of file gthr-posix.h.

References __gthread_mutex_unlock().

int __gthread_setspecific __gthread_key_t  key,
const void *  ptr
[inline, static]
 

Definition at line 590 of file gthr-posix.h.

References __gthrw_pthread_setspecific.

Referenced by __gnu_cxx::__mt_alloc< _Tp >::_S_get_thread_id().


Generated on Tue Jan 30 17:31:56 2007 for GNU C++ STL by doxygen 1.3.6