diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-12-03 03:54:30 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-12-03 03:54:30 +0000 |
commit | 29aed671e4370a1246b0664ebf80a4710347b04d (patch) | |
tree | 43c6a733aab42ab8efa206f7675687ac4417f7d3 /cpukit | |
parent | 2011-12-02 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-29aed671e4370a1246b0664ebf80a4710347b04d.tar.bz2 |
2011-12-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* 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.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 9 | ||||
-rw-r--r-- | cpukit/posix/src/pthread.c | 11 |
2 files changed, 15 insertions, 5 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 880928308d..6803606eea 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,12 @@ +2011-12-03 Ralf Corsépius <ralf.corsepius@rtems.org> + + * 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. + 2011-12-02 Ralf Corsépius <ralf.corsepius@rtems.org> * libcsupport/include/rtems/libcsupport.h: 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)(); |