[rtems commit] smp: Replace task delete with suspend
Sebastian Huber
sebh at rtems.org
Wed May 29 09:04:02 UTC 2013
Module: rtems
Branch: master
Commit: 3d7eecc0a68ffe29e61384c62035ceac7faf56ac
Changeset: http://git.rtems.org/rtems/commit/?id=3d7eecc0a68ffe29e61384c62035ceac7faf56ac
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue May 21 17:06:21 2013 +0200
smp: Replace task delete with suspend
The rtems_task_delete() does not work on SMP at the moment. See PR1814.
---
cpukit/rtems/src/taskdelete.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/cpukit/rtems/src/taskdelete.c b/cpukit/rtems/src/taskdelete.c
index 2f78301..6ab5798 100644
--- a/cpukit/rtems/src/taskdelete.c
+++ b/cpukit/rtems/src/taskdelete.c
@@ -38,6 +38,9 @@ rtems_status_code rtems_task_delete(
rtems_id id
)
{
+#ifdef RTEMS_SMP
+ return rtems_task_suspend( id );
+#else /* RTEMS_SMP */
register Thread_Control *the_thread;
Objects_Locations location;
Objects_Information *the_information;
@@ -90,4 +93,5 @@ rtems_status_code rtems_task_delete(
_RTEMS_Unlock_allocator();
return RTEMS_INVALID_ID;
+#endif /* RTEMS_SMP */
}
More information about the vc
mailing list