RTEMS CPU Kit with SuperCore
4.11.3
|
POSIX RWLock Translate Core RWLock Return Code. More...
#include <pthread.h>
#include <errno.h>
#include <rtems/system.h>
#include <rtems/posix/rwlockimpl.h>
Functions | |
int | _POSIX_RWLock_Translate_core_RWLock_return_code (CORE_RWLock_Status the_rwlock_status) |
POSIX translate core RWLock return code. More... | |
POSIX RWLock Translate Core RWLock Return Code.
int _POSIX_RWLock_Translate_core_RWLock_return_code | ( | CORE_RWLock_Status | the_RWLock_status | ) |
POSIX translate core RWLock return code.
This routine translates SuperCore RWLock status codes into the corresponding POSIX ones.
[in] | the_RWLock_status | is the SuperCore status. |
0 | The status indicates that the operation completed successfully. |
EINVAL | The status indicates that the thread was blocked waiting for an operation to complete and the RWLock was deleted. |
EBUSY | This status indicates that the RWLock was not immediately available. |
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. |
References CORE_RWLOCK_STATUS_LAST.