gthr-default.h File Reference

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

Go to the source code of this file.

Defines

#define __GTHREADS   1
#define __GTHREAD_HAS_COND   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 __GTHREAD_COND_INIT   PTHREAD_COND_INITIALIZER
#define __gthrw2(name, name2, type)
#define __gthrw_(name)   name
#define __gthrw(name)   __gthrw2(__gthrw_ ## name,name,name)

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
typedef pthread_cond_t __gthread_cond_t

Functions

 __gthrw (pthread_once) __gthrw(pthread_getspecific) __gthrw(pthread_setspecific) __gthrw(pthread_create) __gthrw(pthread_cancel) __gthrw(pthread_mutex_lock) __gthrw(pthread_mutex_trylock) __gthrw(pthread_mutex_unlock) __gthrw(pthread_mutex_init) __gthrw(pthread_cond_broadcast) __gthrw(pthread_cond_wait) __gthrw(pthread_key_create) __gthrw(pthread_key_delete) __gthrw(pthread_mutexattr_init) __gthrw(pthread_mutexattr_settype) __gthrw(pthread_mutexattr_destroy) static inline int __gthread_active_p(void)
static int __gthread_once (__gthread_once_t *once, void(*func)(void))
static int __gthread_key_create (__gthread_key_t *key, void(*dtor)(void *))
static int __gthread_key_delete (__gthread_key_t key)
static void * __gthread_getspecific (__gthread_key_t key)
static int __gthread_setspecific (__gthread_key_t key, const void *ptr)
static int __gthread_mutex_lock (__gthread_mutex_t *mutex)
static int __gthread_mutex_trylock (__gthread_mutex_t *mutex)
static int __gthread_mutex_unlock (__gthread_mutex_t *mutex)
static int __gthread_recursive_mutex_init_function (__gthread_recursive_mutex_t *mutex)
static int __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *mutex)
static int __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *mutex)
static int __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *mutex)
static int __gthread_cond_broadcast (__gthread_cond_t *cond)
static int __gthread_cond_wait (__gthread_cond_t *cond, __gthread_mutex_t *mutex)
static int __gthread_cond_wait_recursive (__gthread_cond_t *cond, __gthread_recursive_mutex_t *mutex)


Define Documentation

#define __GTHREAD_COND_INIT   PTHREAD_COND_INITIALIZER

Definition at line 65 of file gthr-default.h.

#define __GTHREAD_HAS_COND   1

Definition at line 54 of file gthr-default.h.

#define __GTHREAD_MUTEX_INIT   PTHREAD_MUTEX_INITIALIZER

Definition at line 56 of file gthr-default.h.

Referenced by __gnu_cxx::_Refcount_Base::_Refcount_Base(), __gnu_cxx::_Rope_RopeRep< _CharT, _Alloc >::_Rope_RopeRep(), and std::tr1::_Sp_counted_base::_Sp_counted_base().

#define __GTHREAD_ONCE_INIT   PTHREAD_ONCE_INIT

Definition at line 57 of file gthr-default.h.

#define __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION   __gthread_recursive_mutex_init_function

Definition at line 63 of file gthr-default.h.

#define __GTHREADS   1

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

#define __gthrw ( name   )     __gthrw2(__gthrw_ ## name,name,name)

Definition at line 81 of file gthr-default.h.

#define __gthrw2 ( name,
name2,
type   ) 

Definition at line 76 of file gthr-default.h.

#define __gthrw_ ( name   )     name

Definition at line 77 of file gthr-default.h.

Referenced by __gthread_cond_broadcast(), __gthread_cond_wait(), __gthread_getspecific(), __gthread_key_create(), __gthread_key_delete(), __gthread_mutex_lock(), __gthread_mutex_trylock(), __gthread_mutex_unlock(), __gthread_once(), __gthread_recursive_mutex_init_function(), __gthread_setspecific(), and __gthrw().


Typedef Documentation

typedef pthread_cond_t __gthread_cond_t

Definition at line 50 of file gthr-default.h.

typedef pthread_key_t __gthread_key_t

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

typedef pthread_mutex_t __gthread_mutex_t

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

typedef pthread_once_t __gthread_once_t

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

typedef pthread_mutex_t __gthread_recursive_mutex_t

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


Function Documentation

static int __gthread_cond_broadcast ( __gthread_cond_t cond  )  [inline, static]

Definition at line 623 of file gthr-default.h.

References __gthrw_.

static int __gthread_cond_wait ( __gthread_cond_t cond,
__gthread_mutex_t mutex 
) [inline, static]

Definition at line 629 of file gthr-default.h.

References __gthrw_.

Referenced by __gthread_cond_wait_recursive().

static int __gthread_cond_wait_recursive ( __gthread_cond_t cond,
__gthread_recursive_mutex_t mutex 
) [inline, static]

Definition at line 635 of file gthr-default.h.

References __gthread_cond_wait().

static void* __gthread_getspecific ( __gthread_key_t  key  )  [inline, static]

Definition at line 544 of file gthr-default.h.

References __gthrw_.

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

Definition at line 532 of file gthr-default.h.

References __gthrw_.

static int __gthread_key_delete ( __gthread_key_t  key  )  [inline, static]

Definition at line 538 of file gthr-default.h.

References __gthrw_.

static int __gthread_mutex_lock ( __gthread_mutex_t mutex  )  [inline, static]

Definition at line 556 of file gthr-default.h.

References __gthread_active_p(), and __gthrw_.

Referenced by __gthread_recursive_mutex_lock(), __gnu_cxx::_Refcount_Base::_M_decr(), and __gnu_cxx::_Refcount_Base::_M_incr().

static int __gthread_mutex_trylock ( __gthread_mutex_t mutex  )  [inline, static]

Definition at line 565 of file gthr-default.h.

References __gthread_active_p(), and __gthrw_.

Referenced by __gthread_recursive_mutex_trylock().

static int __gthread_mutex_unlock ( __gthread_mutex_t mutex  )  [inline, static]

Definition at line 574 of file gthr-default.h.

References __gthread_active_p(), and __gthrw_.

Referenced by __gthread_recursive_mutex_unlock(), __gnu_cxx::_Refcount_Base::_M_decr(), and __gnu_cxx::_Refcount_Base::_M_incr().

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

Definition at line 523 of file gthr-default.h.

References __gthread_active_p(), and __gthrw_.

static int __gthread_recursive_mutex_init_function ( __gthread_recursive_mutex_t mutex  )  [inline, static]

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

References __gthread_active_p(), and __gthrw_.

static int __gthread_recursive_mutex_lock ( __gthread_recursive_mutex_t mutex  )  [inline, static]

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

References __gthread_mutex_lock().

static int __gthread_recursive_mutex_trylock ( __gthread_recursive_mutex_t mutex  )  [inline, static]

Definition at line 611 of file gthr-default.h.

References __gthread_mutex_trylock().

static int __gthread_recursive_mutex_unlock ( __gthread_recursive_mutex_t mutex  )  [inline, static]

Definition at line 617 of file gthr-default.h.

References __gthread_mutex_unlock().

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

Definition at line 550 of file gthr-default.h.

References __gthrw_.

__gthrw ( pthread_once   ) 

Definition at line 100 of file gthr-default.h.

References __gthrw_.


Generated on Tue Feb 2 16:57:19 2010 for GNU C++ STL by  doxygen 1.4.7