diff options
author | joel <joel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-05 13:16:57 +0000 |
---|---|---|
committer | joel <joel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-05 13:16:57 +0000 |
commit | 2349cd3e43379cd107ab0248ed10ff5c3352e0eb (patch) | |
tree | 18980b00f57d746c424feadcfac64eb546f31d4d /gcc/gthr-rtems.h | |
parent | 70d2daf706955b9c5e21c4d1dc9501ff45837f2e (diff) | |
download | gcc-2349cd3e43379cd107ab0248ed10ff5c3352e0eb.tar.gz |
2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* gthr-rtems.h: Implement __gthread_mutex_destroy.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132897 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-rtems.h')
-rw-r--r-- | gcc/gthr-rtems.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/gthr-rtems.h b/gcc/gthr-rtems.h index 425d7dee0e9..e926d534c5e 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 |