summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/tasks.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-10 06:47:19 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-12 13:24:40 +0200
commit105b4e6fa5005ce41c363711dec49851d4aef66f (patch)
tree23ded5915c1438a5a5c6285ab2db16d1abe480d5 /cpukit/rtems/src/tasks.c
parentscore: Introduce thread state lock (diff)
downloadrtems-105b4e6fa5005ce41c363711dec49851d4aef66f.tar.bz2
rtems: Use thread state lock for signals
Diffstat (limited to '')
-rw-r--r--cpukit/rtems/src/tasks.c48
1 files changed, 1 insertions, 47 deletions
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c
index 56b2455ad7..b4ebff6ff5 100644
--- a/cpukit/rtems/src/tasks.c
+++ b/cpukit/rtems/src/tasks.c
@@ -20,7 +20,6 @@
#include <rtems/config.h>
#include <rtems/sysinit.h>
-#include <rtems/rtems/asrimpl.h>
#include <rtems/rtems/eventimpl.h>
#include <rtems/rtems/tasksimpl.h>
#include <rtems/score/threadimpl.h>
@@ -28,37 +27,6 @@
Thread_Information _RTEMS_tasks_Information;
-/*
- * _RTEMS_tasks_Create_extension
- *
- * This routine is an extension routine that is invoked as part
- * of creating any type of task or thread in the system. If the
- * task is created via another API, then this routine is invoked
- * and this API given the opportunity to initialize its extension
- * area.
- */
-
-static bool _RTEMS_tasks_Create_extension(
- Thread_Control *executing,
- Thread_Control *created
-)
-{
- RTEMS_API_Control *api;
-
- api = created->API_Extensions[ THREAD_API_RTEMS ];
-
- _ASR_Create( &api->Signal );
-
- return true;
-}
-
-/*
- * _RTEMS_tasks_Start_extension
- *
- * This extension routine is invoked when a task is started for the
- * first time.
- */
-
static void _RTEMS_tasks_Start_extension(
Thread_Control *executing,
Thread_Control *started
@@ -72,24 +40,10 @@ static void _RTEMS_tasks_Start_extension(
_Event_Initialize( &api->System_event );
}
-static void _RTEMS_tasks_Delete_extension(
- Thread_Control *executing,
- Thread_Control *deleted
-)
-{
- RTEMS_API_Control *api;
-
- api = deleted->API_Extensions[ THREAD_API_RTEMS ];
-
- _ASR_Destroy( &api->Signal );
-}
-
User_extensions_Control _RTEMS_tasks_User_extensions = {
.Callouts = {
- .thread_create = _RTEMS_tasks_Create_extension,
.thread_start = _RTEMS_tasks_Start_extension,
- .thread_restart = _RTEMS_tasks_Start_extension,
- .thread_delete = _RTEMS_tasks_Delete_extension
+ .thread_restart = _RTEMS_tasks_Start_extension
}
};