summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-03-05 03:07:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-03-05 03:07:36 +0000
commit8ac8cb22a9935108d2a5a05ee92e033b3b3cae09 (patch)
tree3e77ca48ccf4571c4dc938c38672bf01ff1f94fc /cpukit
parentAbandon freebsd6.1. (diff)
downloadrtems-8ac8cb22a9935108d2a5a05ee92e033b3b3cae09.tar.bz2
2008-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/gxx_wrappers.c: Add rtems_gxx_mutex_destroy as needed by gcc newer than the 4.3 release series.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/libcsupport/src/gxx_wrappers.c9
2 files changed, 14 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 4f10e55932..5b96059070 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,10 @@
2008-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>
+ * libcsupport/src/gxx_wrappers.c: Add rtems_gxx_mutex_destroy as needed
+ by gcc newer than the 4.3 release series.
+
+2008-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>
+
* libmisc/Makefile.am, libmisc/shell/main_cp.c,
libmisc/shell/main_cpuuse.c, libmisc/shell/main_date.c,
libmisc/shell/main_mallocinfo.c, libmisc/shell/main_netstats.c,
diff --git a/cpukit/libcsupport/src/gxx_wrappers.c b/cpukit/libcsupport/src/gxx_wrappers.c
index 8fa17fade0..ed772eb9d9 100644
--- a/cpukit/libcsupport/src/gxx_wrappers.c
+++ b/cpukit/libcsupport/src/gxx_wrappers.c
@@ -213,6 +213,15 @@ int rtems_gxx_mutex_lock (__gthread_mutex_t *mutex)
RTEMS_WAIT, RTEMS_NO_TIMEOUT ) == RTEMS_SUCCESSFUL) ? 0 : -1;
}
+int rtems_gxx_mutex_destroy (__gthread_mutex_t *mutex)
+{
+#ifdef DEBUG_GXX_WRAPPERS
+ printk( "gxx_wrappers: destroy mutex=%X\n", *mutex );
+#endif
+ return ( rtems_semaphore_delete((rtems_id)*mutex)
+ == RTEMS_SUCCESSFUL) ? 0 : -1;
+}
+
int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex)
{
#ifdef DEBUG_GXX_WRAPPERS