diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-18 08:28:14 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-19 08:34:26 +0100 |
commit | 51f823c9327e3e73fb75688aaeeefae35007f37c (patch) | |
tree | 40798813bed67cc4fe27f7e570834fea9aa76276 /cpukit/sapi/src/exinit.c | |
parent | score: Make _ISR_Enable_without_giant() available (diff) | |
download | rtems-51f823c9327e3e73fb75688aaeeefae35007f37c.tar.bz2 |
posix: Use interal mutex for once implementation
Enable pthread_once() for all configurations. The pthread_once()
function is one means to initialize POSIX keys. Another use case is the
C++ support.
Diffstat (limited to 'cpukit/sapi/src/exinit.c')
-rw-r--r-- | cpukit/sapi/src/exinit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c index 077a092b0e..cc929cb4f3 100644 --- a/cpukit/sapi/src/exinit.c +++ b/cpukit/sapi/src/exinit.c @@ -116,8 +116,9 @@ void rtems_initialize_data_structures(void) */ _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; - _API_Mutex_Initialization( 1 ); + _API_Mutex_Initialization( 2 ); _API_Mutex_Allocate( &_RTEMS_Allocator_Mutex ); + _API_Mutex_Allocate( &_Once_Mutex ); _Watchdog_Handler_initialization(); _TOD_Handler_initialization(); |