aboutsummaryrefslogtreecommitdiff
path: root/gcc/gthr-single.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gthr-single.h')
-rw-r--r--gcc/gthr-single.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/gthr-single.h b/gcc/gthr-single.h
index 0bb46826..d42ee15 100644
--- a/gcc/gthr-single.h
+++ b/gcc/gthr-single.h
@@ -32,6 +32,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* Just provide compatibility for mutex handling. */
typedef int __gthread_mutex_t;
+typedef int __gthread_recursive_mutex_t;
#define __GTHREAD_MUTEX_INIT 0
@@ -232,6 +233,24 @@ __gthread_mutex_unlock (__gthread_mutex_t * UNUSED(mutex))
return 0;
}
+static inline int
+__gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *mutex)
+{
+ return __gthread_mutex_lock (mutex);
+}
+
+static inline int
+__gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *mutex)
+{
+ return __gthread_mutex_trylock (mutex);
+}
+
+static inline int
+__gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *mutex)
+{
+ return __gthread_mutex_unlock (mutex);
+}
+
#endif /* _LIBOBJC */
#undef UNUSED