RTEMS CPU Kit with SuperCore  4.11.2
corerwlock.h
Go to the documentation of this file.
1 
10 /*
11  * COPYRIGHT (c) 1989-2008.
12  * On-Line Applications Research Corporation (OAR).
13  *
14  * The license and distribution terms for this file may be
15  * found in the file LICENSE in this distribution or at
16  * http://www.rtems.org/license/LICENSE.
17  */
18 
19 #ifndef _RTEMS_SCORE_CORERWLOCK_H
20 #define _RTEMS_SCORE_CORERWLOCK_H
21 
22 #include <rtems/score/threadq.h>
23 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
41 typedef enum {
52 
57 typedef struct {
60  int XXX;
62 
67 typedef struct {
78  CORE_RWLock_States current_state;
83 
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 #endif
91 /* end of include file */
The following defines the control block used to manage each RWLock.
Definition: corerwlock.h:67
Thread_queue_Control Wait_queue
This field is the Waiting Queue used to manage the set of tasks which are blocked waiting for the RWL...
Definition: corerwlock.h:71
This indicates the the RWLock is not currently locked.
Definition: corerwlock.h:44
CORE_RWLock_States current_state
This element is the current state of the RWLock.
Definition: corerwlock.h:78
int XXX
This field indicates XXX.
Definition: corerwlock.h:60
This is the structure used to manage sets of tasks which are blocked waiting to acquire a resource...
Definition: threadq.h:171
Constants and Structures Needed to Declare a Thread Queue.
The following defines the control block used to manage the attributes of each RWLock.
Definition: corerwlock.h:57
CORE_RWLock_States
RWLock State.
Definition: corerwlock.h:41
uint32_t number_of_readers
This element contains the current number of thread waiting for this RWLock to be released.
Definition: corerwlock.h:81
CORE_RWLock_Attributes Attributes
This element is the set of attributes which define this instance&#39;s behavior.
Definition: corerwlock.h:75
This indicates the the RWLock is currently locked for reading.
Definition: corerwlock.h:47
This indicates the the RWLock is currently locked for reading.
Definition: corerwlock.h:50