From 37eb717f90c04b9a2654ef5c5b247eb50652e54b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 17 Oct 2017 11:46:54 +0200 Subject: posix: Simplify _POSIX_Threads_Create_extension() Move unblocked signals initialization to pthread_create(). Update #2514. --- cpukit/posix/src/pthread.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'cpukit/posix/src/pthread.c') diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index 8bd44ca03a..ba394b4924 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -122,26 +122,9 @@ static bool _POSIX_Threads_Create_extension( ) { POSIX_API_Control *api; - POSIX_API_Control *executing_api; api = created->API_Extensions[ THREAD_API_POSIX ]; - /* - * If the thread is not a posix thread, then all posix signals are blocked - * by default. - * - * The check for class == 1 is debug. Should never really happen. - */ - RTEMS_STATIC_ASSERT( SIGNAL_EMPTY_MASK == 0, signals_pending ); - if ( _Objects_Get_API( created->Object.id ) == OBJECTS_POSIX_API - #if defined(RTEMS_DEBUG) - && _Objects_Get_class( created->Object.id ) == 1 - #endif - ) { - executing_api = _Thread_Get_executing()->API_Extensions[ THREAD_API_POSIX ]; - api->signals_unblocked = executing_api->signals_unblocked; - } - api->Sporadic.thread = created; _Watchdog_Preinitialize( &api->Sporadic.Timer, _Per_CPU_Get_by_index( 0 ) ); _Watchdog_Initialize( &api->Sporadic.Timer, _POSIX_Threads_Sporadic_timer ); -- cgit v1.2.3