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
This commit is contained in:
Joel Sherrill 2008-03-05 13:16:57 +00:00 committed by Joel Sherrill
parent e55f42fb77
commit fec5fe47e6
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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