![]() |
RTEMS 6.1
|
This header file provides interfaces of the Read-Write Lock which are only used by the implementation. More...
#include <rtems/score/percpu.h>#include <rtems/score/status.h>#include <rtems/score/thread.h>#include <rtems/score/threadqimpl.h>#include <rtems/score/watchdog.h>Go to the source code of this file.
Data Structures | |
| struct | CORE_RWLock_Control |
Macros | |
| #define | CORE_RWLOCK_TQ_OPERATIONS &_Thread_queue_Operations_FIFO |
| #define | CORE_RWLOCK_THREAD_WAITING_FOR_READ 0 |
| #define | CORE_RWLOCK_THREAD_WAITING_FOR_WRITE 1 |
Enumerations | |
| enum | CORE_RWLock_States { CORE_RWLOCK_UNLOCKED , CORE_RWLOCK_LOCKED_FOR_READING , CORE_RWLOCK_LOCKED_FOR_WRITING } |
Functions | |
| void | _CORE_RWLock_Initialize (CORE_RWLock_Control *the_rwlock) |
| Initializes a RWlock. | |
| Status_Control | _CORE_RWLock_Seize_for_reading (CORE_RWLock_Control *the_rwlock, bool wait, Thread_queue_Context *queue_context) |
| Obtains RWLock for reading. | |
| Status_Control | _CORE_RWLock_Seize_for_writing (CORE_RWLock_Control *the_rwlock, bool wait, Thread_queue_Context *queue_context) |
| Obtains RWLock for writing. | |
| Status_Control | _CORE_RWLock_Surrender (CORE_RWLock_Control *the_rwlock) |
| Releases the RWLock. | |
This header file provides interfaces of the Read-Write Lock which are only used by the implementation.