RTEMS CPU Kit with SuperCore  4.11.2
coresem.h
Go to the documentation of this file.
1 
12 /*
13  * COPYRIGHT (c) 1989-2008.
14  * On-Line Applications Research Corporation (OAR).
15  *
16  * The license and distribution terms for this file may be
17  * found in the file LICENSE in this distribution or at
18  * http://www.rtems.org/license/LICENSE.
19  */
20 
21 #ifndef _RTEMS_SCORE_CORESEM_H
22 #define _RTEMS_SCORE_CORESEM_H
23 
24 #include <rtems/score/threadq.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
43 typedef enum {
51 
56 typedef struct {
58  uint32_t maximum_count;
62  CORE_semaphore_Disciplines discipline;
64 
69 typedef struct {
79  uint32_t count;
81 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif
89 /* end of include file */
This specifies that threads will wait for the semaphore in FIFO order.
Definition: coresem.h:45
CORE_semaphore_Disciplines discipline
This field indicates whether threads waiting on the semaphore block in FIFO or priority order...
Definition: coresem.h:62
The following defines the control block used to manage each counting semaphore.
Definition: coresem.h:69
CORE_semaphore_Disciplines
Blocking disciplines for a semaphore.
Definition: coresem.h:43
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 semaphore.
Definition: coresem.h:56
This specifies that threads will wait for the semaphore in priority order.
Definition: coresem.h:49
CORE_semaphore_Attributes Attributes
This element is the set of attributes which define this instance&#39;s behavior.
Definition: coresem.h:77
Thread_queue_Control Wait_queue
This field is the Waiting Queue used to manage the set of tasks which are blocked waiting to obtain t...
Definition: coresem.h:73
uint32_t count
This element contains the current count of this semaphore.
Definition: coresem.h:79
uint32_t maximum_count
This element indicates the maximum count this semaphore may have.
Definition: coresem.h:58