diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2008-03-05 13:16:57 +0000 |
---|---|---|
committer | Joel Sherrill <joel@gcc.gnu.org> | 2008-03-05 13:16:57 +0000 |
commit | fec5fe47e641ed2f95e60197a9a3977176427749 (patch) | |
tree | 18980b00f57d746c424feadcfac64eb546f31d4d | |
parent | e55f42fb7738d37959ec19d10e8335f9c8269eea (diff) | |
download | gcc-fec5fe47e641ed2f95e60197a9a3977176427749.zip gcc-fec5fe47e641ed2f95e60197a9a3977176427749.tar.gz gcc-fec5fe47e641ed2f95e60197a9a3977176427749.tar.bz2 |
gthr-rtems.h: Implement __gthread_mutex_destroy.
2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* gthr-rtems.h: Implement __gthread_mutex_destroy.
From-SVN: r132897
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | 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 <joel.sherrill@oarcorp.com> + + * gthr-rtems.h: Implement __gthread_mutex_destroy. + 2008-03-05 Richard Guenther <rguenther@suse.de> 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 |