From fec5fe47e641ed2f95e60197a9a3977176427749 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 5 Mar 2008 13:16:57 +0000 Subject: gthr-rtems.h: Implement __gthread_mutex_destroy. 2008-03-05 Joel Sherrill * gthr-rtems.h: Implement __gthread_mutex_destroy. From-SVN: r132897 --- gcc/ChangeLog | 4 ++++ gcc/gthr-rtems.h | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0cc62c9..fe41464 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-03-05 Joel Sherrill + + * gthr-rtems.h: Implement __gthread_mutex_destroy. + 2008-03-05 Richard Guenther PR c++/35336 diff --git a/gcc/gthr-rtems.h b/gcc/gthr-rtems.h index 425d7de..e926d53 100644 --- a/gcc/gthr-rtems.h +++ b/gcc/gthr-rtems.h @@ -62,6 +62,7 @@ extern int rtems_gxx_setspecific (__gthread_key_t key, const void *ptr); /* mutex support */ extern void rtems_gxx_mutex_init (__gthread_mutex_t *mutex); +extern int rtems_gxx_mutex_destroy (__gthread_mutex_t *mutex); extern int rtems_gxx_mutex_lock (__gthread_mutex_t *mutex); extern int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex); extern int rtems_gxx_mutex_unlock (__gthread_mutex_t *mutex); @@ -111,9 +112,9 @@ __gthread_setspecific (__gthread_key_t key, const void *ptr) } static inline int -__gthread_mutex_destroy (__gthread_mutex_t * UNUSED(mutex)) +__gthread_mutex_destroy (__gthread_mutex_t *mutex) { - return 0; + return rtems_gxx_mutex_destroy (mutex); } static inline int -- cgit v1.1