summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems')
-rw-r--r--cpukit/rtems/src/taskconstruct.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/rtems/src/taskconstruct.c b/cpukit/rtems/src/taskconstruct.c
index 6ff83a0b9c..d33a850d88 100644
--- a/cpukit/rtems/src/taskconstruct.c
+++ b/cpukit/rtems/src/taskconstruct.c
@@ -79,6 +79,14 @@ rtems_status_code rtems_task_construct(
return _RTEMS_tasks_Create( config, id, _RTEMS_tasks_Prepare_user_stack );
}
+static void _RTEMS_tasks_Free( Thread_Control *the_thread )
+{
+ Thread_Information *information;
+
+ information = _Thread_Get_objects_information( the_thread );
+ _Objects_Free( &information->Objects, &the_thread->Object );
+}
+
rtems_status_code _RTEMS_tasks_Create(
const rtems_task_config *config,
rtems_id *id,