Changeset 51f823c9 in rtems for cpukit/sapi/src/exinit.c


Ignore:
Timestamp:
Mar 18, 2014, 7:28:14 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
ff25926
Parents:
fa3993d9
git-author:
Sebastian Huber <sebastian.huber@…> (03/18/14 07:28:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/19/14 07:34:26)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/src/exinit.c

    rfa3993d9 r51f823c9  
    117117  _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects;
    118118
    119   _API_Mutex_Initialization( 1 );
     119  _API_Mutex_Initialization( 2 );
    120120  _API_Mutex_Allocate( &_RTEMS_Allocator_Mutex );
     121  _API_Mutex_Allocate( &_Once_Mutex );
    121122
    122123  _Watchdog_Handler_initialization();
Note: See TracChangeset for help on using the changeset viewer.