RTEMS CPU Kit with SuperCore  4.11.3
barrier.h
Go to the documentation of this file.
1 
21 /* COPYRIGHT (c) 1989-2008.
22  * On-Line Applications Research Corporation (OAR).
23  *
24  * The license and distribution terms for this file may be
25  * found in the file LICENSE in this distribution or at
26  * http://www.rtems.org/license/LICENSE.
27  */
28 
29 #ifndef _RTEMS_RTEMS_BARRIER_H
30 #define _RTEMS_RTEMS_BARRIER_H
31 
32 #include <rtems/rtems/types.h>
33 #include <rtems/rtems/status.h>
34 #include <rtems/rtems/attr.h>
35 #include <rtems/score/object.h>
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
55 typedef struct {
63 
84  rtems_name name,
85  rtems_attribute attribute_set,
86  uint32_t maximum_waiters,
87  rtems_id *id
88 );
89 
107  rtems_name name,
108  rtems_id *id
109 );
110 
124  rtems_id id
125 );
126 
142  rtems_id id,
143  rtems_interval timeout
144 );
145 
162  rtems_id id,
163  uint32_t *released
164 );
165 
168 #ifdef __cplusplus
169 }
170 #endif
171 
172 #endif
173 /* end of include file */
Constants and Structures Associated with the Object Handler.
rtems_status_code rtems_barrier_release(rtems_id id, uint32_t *released)
RTEMS Barrier Release.
Definition: barrierrelease.c:42
uint32_t rtems_attribute
This defines the type used to contain Classic API attributes.
Definition: attr.h:44
Objects_Control Object
This is used to manage a barrier as an object.
Definition: barrier.h:57
The following defines the Object Control Block used to manage each object local to this node...
Definition: object.h:232
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:80
rtems_status_code rtems_barrier_ident(rtems_name name, rtems_id *id)
RTEMS Barrier name to Id.
Definition: barrierident.c:27
rtems_attribute attribute_set
This is used to specify the attributes of a barrier.
Definition: barrier.h:59
Watchdog_Interval rtems_interval
Used to manage and manipulate intervals specified by clock ticks.
Definition: types.h:119
rtems_status_code rtems_barrier_wait(rtems_id id, rtems_interval timeout)
RTEMS Barrier Wait.
Definition: barrierwait.c:27
rtems_status_code rtems_barrier_create(rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id)
RTEMS Create Barrier.
Definition: barriercreate.c:46
rtems_status_code
Classic API Status.
Definition: status.h:46
uint32_t rtems_name
Classic API object name type.
Definition: types.h:74
Constants and Structures Associated with the Barrier Handler.
This type defines the control block used to manage each barrier.
Definition: barrier.h:55
CORE_barrier_Control Barrier
This is used to implement the barrier.
Definition: barrier.h:61
The following defines the control block used to manage each barrier.
Definition: corebarrier.h:70
rtems_status_code rtems_barrier_delete(rtems_id id)
RTEMS Delete Barrier.
Definition: barrierdelete.c:24