Changeset dfdad6ab in rtems
- Timestamp:
- 10/08/14 08:09:14 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- b9f95225
- Parents:
- 419accf
- git-author:
- Sebastian Huber <sebastian.huber@…> (10/08/14 08:09:14)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (10/08/14 09:26:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/posix/src/mutexget.c
r419accf rdfdad6ab 20 20 21 21 #include <rtems/posix/muteximpl.h> 22 #include <rtems/score/apimutex.h> 22 23 23 24 static bool _POSIX_Mutex_Check_id_and_auto_init( … … 35 36 int eno; 36 37 37 eno = pthread_mutex_init( mutex, NULL ); 38 _Once_Lock(); 39 40 if ( *mutex == PTHREAD_MUTEX_INITIALIZER ) { 41 eno = pthread_mutex_init( mutex, NULL ); 42 } else { 43 eno = 0; 44 } 45 46 _Once_Unlock(); 38 47 39 48 if ( eno != 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.