diff options
Diffstat (limited to 'cpukit/posix/src/seminit.c')
-rw-r--r-- | cpukit/posix/src/seminit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/posix/src/seminit.c b/cpukit/posix/src/seminit.c index 466b2d0a0c..a55a1c4e1b 100644 --- a/cpukit/posix/src/seminit.c +++ b/cpukit/posix/src/seminit.c @@ -47,6 +47,7 @@ int sem_init( if ( !sem ) rtems_set_errno_and_return_minus_one( EINVAL ); + _Objects_Allocator_lock(); status = _POSIX_Semaphore_Create_support( NULL, 0, @@ -54,6 +55,7 @@ int sem_init( value, &the_semaphore ); + _Objects_Allocator_unlock(); if ( status != -1 ) *sem = the_semaphore->Object.id; |