diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-19 14:39:45 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-22 16:57:23 +0200 |
commit | 0e8656b49eecdff64d639e765ef861cd974392e9 (patch) | |
tree | 02f825c7ef59c2d12dddd61a123fcd393b56fefa /cpukit/posix/include/rtems/posix/rwlock.h | |
parent | posix: Create pthread implementation header (diff) | |
download | rtems-0e8656b49eecdff64d639e765ef861cd974392e9.tar.bz2 |
posix: Create rwlock implementation header
Move implementation specific parts of rwlock.h and rwlock.inl into new
header file rwlockimpl.h. The rwlock.h contains now only the
application visible API.
Diffstat (limited to 'cpukit/posix/include/rtems/posix/rwlock.h')
-rw-r--r-- | cpukit/posix/include/rtems/posix/rwlock.h | 48 |
1 files changed, 3 insertions, 45 deletions
diff --git a/cpukit/posix/include/rtems/posix/rwlock.h b/cpukit/posix/include/rtems/posix/rwlock.h index 0cfd20dad8..31f75c2d58 100644 --- a/cpukit/posix/include/rtems/posix/rwlock.h +++ b/cpukit/posix/include/rtems/posix/rwlock.h @@ -25,6 +25,9 @@ #ifndef _RTEMS_POSIX_RWLOCK_H #define _RTEMS_POSIX_RWLOCK_H +#include <rtems/score/object.h> +#include <rtems/score/corerwlock.h> + #ifdef __cplusplus extern "C" { #endif @@ -39,9 +42,6 @@ extern "C" { */ /**@{**/ -#include <rtems/score/object.h> -#include <rtems/score/corerwlock.h> - /** * This type defines the control block used to manage each RWLock. */ @@ -53,48 +53,6 @@ typedef struct { CORE_RWLock_Control RWLock; } POSIX_RWLock_Control; -/** - * The following defines the information control block used to manage - * this class of objects. - */ - -POSIX_EXTERN Objects_Information _POSIX_RWLock_Information; - -/** - * @brief POSIX RWLock manager initialization. - * - * This routine performs the initialization necessary for this manager. - */ - -void _POSIX_RWLock_Manager_initialization(void); - -/** - * @brief POSIX translate core RWLock return code. - * - * This routine translates SuperCore RWLock status codes into the - * corresponding POSIX ones. - * - * - * @param[in] the_RWLock_status is the SuperCore status. - * - * @return the corresponding POSIX status - * @retval 0 The status indicates that the operation completed successfully. - * @retval EINVAL The status indicates that the thread was blocked waiting for - * an operation to complete and the RWLock was deleted. - * @retval EBUSY This status indicates that the RWLock was not - * immediately available. - * @retval ETIMEDOUT This status indicates that the calling task was - * willing to block but the operation was unable to complete within - * the time allotted because the resource never became available. - */ -int _POSIX_RWLock_Translate_core_RWLock_return_code( - CORE_RWLock_Status the_RWLock_status -); - -#ifndef __RTEMS_APPLICATION__ -#include <rtems/posix/rwlock.inl> -#endif - /** @} */ #ifdef __cplusplus |