blob: 84b02bbd9b3eb7e52550a45725045938659e34f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* macros/corebarrier.inl
*
* This include file contains all of the inlined routines associated
* with core barriers.
*
* COPYRIGHT (c) 1989-2006.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#ifndef _RTEMS_SCORE_COREBARRIER_INL
#define _RTEMS_SCORE_COREBARRIER_INL
/*
* _CORE_barrier_Is_automatic
*/
#define _CORE_barrier_Is_automatic( _the_attribute ) \
( (_the_attribute)->discipline == CORE_BARRIER_AUTOMATIC_RELEASE)
/*
* _CORE_barrier_Get_number_of_waiting_threads
*/
#define _CORE_barrier_Get_number_of_waiting_threads( _the_barrier ) \
( (_the_barrier)->number_of_waiting_threads )
#endif
/* end of include file */
|