From 105b4e6fa5005ce41c363711dec49851d4aef66f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 10 May 2016 06:47:19 +0200 Subject: rtems: Use thread state lock for signals --- cpukit/rtems/src/tasks.c | 48 +----------------------------------------------- 1 file changed, 1 insertion(+), 47 deletions(-) (limited to 'cpukit/rtems/src/tasks.c') 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 #include -#include #include #include #include @@ -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 } }; -- cgit v1.2.3