From 29aed671e4370a1246b0664ebf80a4710347b04d Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sat, 3 Dec 2011 03:54:30 +0000 Subject: =?UTF-8?q?2011-12-03=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * posix/src/pthread.c (_POSIX_Threads_Default_attributes): Add missing initializer. * posix/src/pthread.c: Make _POSIX_Threads_Create_extension,_POSIX_Threads_Delete_extension, _POSIX_Threads_Exitted_extension, _POSIX_Threads_Initialize_user_threads static. --- cpukit/posix/src/pthread.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'cpukit/posix/src/pthread.c') diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index 0212da3378..fb5eb377e0 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -52,7 +52,8 @@ const pthread_attr_t _POSIX_Threads_Default_attributes = { defined(_POSIX_THREAD_SPORADIC_SERVER) 0, /* sched_ss_low_priority */ { 0L, 0 }, /* sched_ss_repl_period */ - { 0L, 0 } /* sched_ss_init_budget */ + { 0L, 0 }, /* sched_ss_init_budget */ + 0 /* sched_ss_max_repl */ #endif }, #if HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE @@ -163,7 +164,7 @@ void _POSIX_Threads_Sporadic_budget_callout( * This method is invoked for each thread created. */ -bool _POSIX_Threads_Create_extension( +static bool _POSIX_Threads_Create_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *created ) @@ -236,7 +237,7 @@ bool _POSIX_Threads_Create_extension( * * This method is invoked for each thread deleted. */ -void _POSIX_Threads_Delete_extension( +static void _POSIX_Threads_Delete_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *deleted ) @@ -278,7 +279,7 @@ void _POSIX_Threads_Delete_extension( * * This method is invoked each time a thread exits. */ -void _POSIX_Threads_Exitted_extension( +static void _POSIX_Threads_Exitted_extension( Thread_Control *executing ) { @@ -296,7 +297,7 @@ void _POSIX_Threads_Exitted_extension( * This routine creates and starts all configured user * initialzation threads. */ -void _POSIX_Threads_Initialize_user_threads( void ) +static void _POSIX_Threads_Initialize_user_threads( void ) { if ( _POSIX_Threads_Initialize_user_threads_p ) (*_POSIX_Threads_Initialize_user_threads_p)(); -- cgit v1.2.3