21 #ifndef __GCC_WRAPPERS_h 22 #define __GCC_WRAPPERS_h 40 typedef void *__gthread_key_t;
41 typedef int __gthread_once_t;
42 typedef void *__gthread_mutex_t;
43 typedef void *__gthread_recursive_mutex_t;
45 int rtems_gxx_once(__gthread_once_t *once,
void (*func) (
void));
47 int rtems_gxx_key_create (__gthread_key_t *key,
void (*dtor) (
void *));
49 int rtems_gxx_key_delete (__gthread_key_t key);
51 void *rtems_gxx_getspecific(__gthread_key_t key);
53 int rtems_gxx_setspecific(__gthread_key_t key,
const void *ptr);
58 void rtems_gxx_mutex_init (__gthread_mutex_t *
mutex);
60 int rtems_gxx_mutex_lock (__gthread_mutex_t *
mutex);
62 int rtems_gxx_mutex_destroy (__gthread_mutex_t *
mutex);
64 int rtems_gxx_mutex_trylock (__gthread_mutex_t *
mutex);
66 int rtems_gxx_mutex_unlock (__gthread_mutex_t *
mutex);
68 void rtems_gxx_recursive_mutex_init(__gthread_recursive_mutex_t *
mutex);
70 int rtems_gxx_recursive_mutex_lock(__gthread_recursive_mutex_t *
mutex);
72 int rtems_gxx_recursive_mutex_trylock(__gthread_recursive_mutex_t *
mutex);
74 int rtems_gxx_recursive_mutex_unlock(__gthread_recursive_mutex_t *
mutex);