summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthread.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-11 10:47:22 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-02-03 10:00:54 +0100
commitef1a985fc7591988ef956dd7b35f9533bace68a6 (patch)
tree757f151efbbbe0bd0fffbe4d6cc6fa0e78799d96 /cpukit/posix/src/pthread.c
parentOptional POSIX Signals initialization (diff)
downloadrtems-ef1a985fc7591988ef956dd7b35f9533bace68a6.tar.bz2
Optional POSIX Threads initialization
Update #2408.
Diffstat (limited to 'cpukit/posix/src/pthread.c')
-rw-r--r--cpukit/posix/src/pthread.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index ee7da11231..691dfc3161 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -26,6 +26,7 @@
#include <rtems/system.h>
#include <rtems/config.h>
+#include <rtems/sysinit.h>
#include <rtems/score/apiext.h>
#include <rtems/score/stack.h>
#include <rtems/score/threadimpl.h>
@@ -43,6 +44,8 @@
#include <rtems/score/cpusetimpl.h>
#include <rtems/score/assert.h>
+Thread_Information _POSIX_Threads_Information;
+
/*
* The default pthreads attributes structure.
*
@@ -338,7 +341,7 @@ User_extensions_Control _POSIX_Threads_User_extensions = {
*
* This routine initializes all threads manager related data structures.
*/
-void _POSIX_Threads_Manager_initialization(void)
+static void _POSIX_Threads_Manager_initialization(void)
{
#if defined(RTEMS_SMP) && defined(__RTEMS_HAVE_SYS_CPUSET_H__)
const CPU_set_Control *affinity;
@@ -381,3 +384,9 @@ void _POSIX_Threads_Manager_initialization(void)
* Register the MP Process Packet routine.
*/
}
+
+RTEMS_SYSINIT_ITEM(
+ _POSIX_Threads_Manager_initialization,
+ RTEMS_SYSINIT_POSIX_THREADS,
+ RTEMS_SYSINIT_ORDER_MIDDLE
+);