summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mqueueunlink.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-02-26 14:28:56 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-02-26 14:28:56 +0000
commit652524d9538f50e229349314043cedb5a15f18be (patch)
tree93349fee27a1ad4c10f260ac9d5e34f3a335530a /cpukit/posix/src/mqueueunlink.c
parent2004-02-26 Sébastien Barré <sbarre@sdelcc.com> (diff)
downloadrtems-652524d9538f50e229349314043cedb5a15f18be.tar.bz2
2004-02-26 Joel Sherrill <joel@OARcorp.com>
PR 582/core * posix/src/mqueue.c, posix/src/mqueuecreatesupp.c, posix/src/mqueuedeletesupp.c, posix/src/mqueueunlink.c: Use memory from workspace to avoid use of mutex during dispatch disable critical section. Besides memory for object names should come from the Workspace anyway.
Diffstat (limited to 'cpukit/posix/src/mqueueunlink.c')
-rw-r--r--cpukit/posix/src/mqueueunlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/posix/src/mqueueunlink.c b/cpukit/posix/src/mqueueunlink.c
index 5d3f54db8d..0ad83ba313 100644
--- a/cpukit/posix/src/mqueueunlink.c
+++ b/cpukit/posix/src/mqueueunlink.c
@@ -28,6 +28,7 @@
#include <rtems/system.h>
#include <rtems/score/watchdog.h>
+#include <rtems/score/wkspace.h>
#include <rtems/seterr.h>
#include <rtems/posix/mqueue.h>
#include <rtems/posix/time.h>
@@ -75,6 +76,7 @@ int mq_unlink(
the_mq->linked = FALSE;
+ _Workspace_Free( the_mq->Object.name );
_POSIX_Message_queue_Namespace_remove( the_mq );
_POSIX_Message_queue_Delete( the_mq );