gthr-tpf.h File Reference

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

Go to the source code of this file.

Defines

#define __GTHREADS   1
#define _REENTRANT   1
#define __GTHREAD_MUTEX_INIT   PTHREAD_MUTEX_INITIALIZER
#define __GTHREAD_ONCE_INIT   PTHREAD_ONCE_INIT
#define NOTATHREAD   00
#define ECBBASEPTR   (unsigned long int) *(unsigned int *)0x00000514u
#define ECBPG2PTR   ECBBASEPTR + 0x1000
#define CE2THRCPTR   *((unsigned char *)(ECBPG2PTR + 16))
#define __tpf_pthread_active()   (CE2THRCPTR != NOTATHREAD)
#define __gthrw(name)
#define __gthrw_(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

Functions

 __gthrw (pthread_once) __gthrw(pthread_key_create) __gthrw(pthread_key_delete) __gthrw(pthread_getspecific) __gthrw(pthread_setspecific) __gthrw(pthread_create) __gthrw(pthread_mutex_lock) __gthrw(pthread_mutex_trylock) __gthrw(pthread_mutex_unlock) 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_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)


Define Documentation

#define __GTHREAD_MUTEX_INIT   PTHREAD_MUTEX_INITIALIZER

Definition at line 62 of file gthr-tpf.h.

#define __GTHREAD_ONCE_INIT   PTHREAD_ONCE_INIT

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

#define __GTHREADS   1

Definition at line 41 of file gthr-tpf.h.

#define __gthrw ( name   ) 

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

#define __gthrw_ ( name   )     name

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

 
#define __tpf_pthread_active (  )     (CE2THRCPTR != NOTATHREAD)

Definition at line 69 of file gthr-tpf.h.

Referenced by __gthread_getspecific(), __gthread_key_create(), __gthread_key_delete(), __gthread_mutex_lock(), __gthread_mutex_trylock(), __gthread_mutex_unlock(), __gthread_once(), __gthread_recursive_mutex_lock(), __gthread_recursive_mutex_trylock(), __gthread_recursive_mutex_unlock(), and __gthread_setspecific().

#define _REENTRANT   1

Definition at line 45 of file gthr-tpf.h.

#define CE2THRCPTR   *((unsigned char *)(ECBPG2PTR + 16))

Definition at line 68 of file gthr-tpf.h.

#define ECBBASEPTR   (unsigned long int) *(unsigned int *)0x00000514u

Definition at line 66 of file gthr-tpf.h.

#define ECBPG2PTR   ECBBASEPTR + 0x1000

Definition at line 67 of file gthr-tpf.h.

#define NOTATHREAD   00

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


Typedef Documentation

typedef pthread_key_t __gthread_key_t

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

typedef pthread_mutex_t __gthread_mutex_t

Definition at line 53 of file gthr-tpf.h.

typedef pthread_once_t __gthread_once_t

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

typedef pthread_mutex_t __gthread_recursive_mutex_t

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


Function Documentation

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

Definition at line 125 of file gthr-tpf.h.

References __gthrw_, and __tpf_pthread_active.

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

Definition at line 107 of file gthr-tpf.h.

References __gthrw_, and __tpf_pthread_active.

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

Definition at line 116 of file gthr-tpf.h.

References __gthrw_, and __tpf_pthread_active.

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

Definition at line 143 of file gthr-tpf.h.

References __gthrw_, and __tpf_pthread_active.

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

Definition at line 152 of file gthr-tpf.h.

References __gthrw_, and __tpf_pthread_active.

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

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

References __gthrw_, and __tpf_pthread_active.

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

Definition at line 98 of file gthr-tpf.h.

References __gthrw_, and __tpf_pthread_active.

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

Definition at line 170 of file gthr-tpf.h.

References __gthread_mutex_lock(), and __tpf_pthread_active.

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

Definition at line 179 of file gthr-tpf.h.

References __gthread_mutex_trylock(), and __tpf_pthread_active.

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

Definition at line 188 of file gthr-tpf.h.

References __gthread_mutex_unlock(), and __tpf_pthread_active.

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

Definition at line 134 of file gthr-tpf.h.

References __gthrw_, and __tpf_pthread_active.

__gthrw ( pthread_once   ) 

Definition at line 80 of file gthr-tpf.h.


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