RTEMS CPU Kit with SuperCore  4.11.2
corebarrier.h
Go to the documentation of this file.
1 
10 /*
11  * COPYRIGHT (c) 1989-2007.
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_COREBARRIER_H
20 #define _RTEMS_SCORE_COREBARRIER_H
21 
22 #include <rtems/score/threadq.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
41 typedef enum {
51 
56 typedef struct {
59  CORE_barrier_Disciplines discipline;
63  uint32_t maximum_count;
65 
70 typedef struct {
83 
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 #endif
91 /* end of include file */
CORE_barrier_Disciplines
Flavors of barriers.
Definition: corebarrier.h:41
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.
This specifies that the barrier will automatically release when the user specified number of threads ...
Definition: corebarrier.h:45
CORE_barrier_Attributes Attributes
This element is the set of attributes which define this instance&#39;s behavior.
Definition: corebarrier.h:78
Thread_queue_Control Wait_queue
This field is the Waiting Queue used to manage the set of tasks which are blocked waiting for the bar...
Definition: corebarrier.h:74
uint32_t number_of_waiting_threads
This element contains the current number of thread waiting for this barrier to be released...
Definition: corebarrier.h:81
This specifies that the user will have to manually release the barrier in order to release the waitin...
Definition: corebarrier.h:49
The following defines the control block used to manage each barrier.
Definition: corebarrier.h:70
The following defines the control block used to manage the attributes of each barrier.
Definition: corebarrier.h:56
CORE_barrier_Disciplines discipline
This field indicates whether the barrier is automatic or manual.
Definition: corebarrier.h:59
uint32_t maximum_count
This element indicates the number of threads which must arrive at the barrier to trip the automatic r...
Definition: corebarrier.h:63