From b9f952254b7f9afeb287ab6d846a56a512a480d3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 8 Oct 2014 10:31:36 +0200 Subject: posix: Add auto initializaton for rwlock --- cpukit/posix/include/rtems/posix/rwlockimpl.h | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'cpukit/posix/include/rtems/posix/rwlockimpl.h') diff --git a/cpukit/posix/include/rtems/posix/rwlockimpl.h b/cpukit/posix/include/rtems/posix/rwlockimpl.h index a62d77638e..48e0a17366 100644 --- a/cpukit/posix/include/rtems/posix/rwlockimpl.h +++ b/cpukit/posix/include/rtems/posix/rwlockimpl.h @@ -92,28 +92,10 @@ RTEMS_INLINE_ROUTINE void _POSIX_RWLock_Free ( _Objects_Free( &_POSIX_RWLock_Information, &the_RWLock->Object ); } -/** - * @brief Get a RWLock control block. - * - * This function maps RWLock IDs to RWLock control blocks. - * If ID corresponds to a local RWLock, then it returns - * the_RWLock control pointer which maps to ID and location - * is set to OBJECTS_LOCAL. if the RWLock ID is global and - * resides on a remote node, then location is set to OBJECTS_REMOTE, - * and the_RWLock is undefined. Otherwise, location is set - * to OBJECTS_ERROR and the_RWLock is undefined. - */ -RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get ( - pthread_rwlock_t *RWLock, +POSIX_RWLock_Control *_POSIX_RWLock_Get( + pthread_rwlock_t *rwlock, Objects_Locations *location -) -{ - return (POSIX_RWLock_Control *) _Objects_Get( - &_POSIX_RWLock_Information, - (Objects_Id) *RWLock, - location - ); -} +); #ifdef __cplusplus } -- cgit v1.2.3