source: rtems/cpukit/rtems/macros/rtems/rtems/barrier.inl @ 8042961d

4.104.114.84.95
Last change on this file since 8042961d was 8042961d, checked in by Joel Sherrill <joel.sherrill@…>, on 09/25/06 at 13:38:24

2006-09-25 Joel Sherrill <joel.sherrill@…>

  • rtems/Makefile.am, rtems/preinstall.am, rtems/include/rtems.h, rtems/include/rtems/rtems/attr.h, rtems/include/rtems/rtems/config.h, rtems/inline/rtems/rtems/attr.inl, rtems/macros/rtems/rtems/attr.inl: Add Classic API Barriers.
  • rtems/include/rtems/rtems/barrier.h, rtems/include/rtems/rtems/barriermp.h, rtems/inline/rtems/rtems/barrier.inl, rtems/macros/rtems/rtems/barrier.inl, rtems/src/barrier.c, rtems/src/barriercreate.c, rtems/src/barrierdelete.c, rtems/src/barrierident.c, rtems/src/barrierrelease.c, rtems/src/barriertranslatereturncode.c, rtems/src/barrierwait.c: New files.
  • Property mode set to 100644
File size: 1021 bytes
Line 
1/**
2 * @file rtems/rtems/barrier.inl
3 */
4
5/*
6 *  This file contains the macro implementation of the inlined
7 *  routines from the Barrier Manager.
8 *
9 *  COPYRIGHT (c) 1989-1999.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef _RTEMS_RTEMS_BARRIER_INL
20#define _RTEMS_RTEMS_BARRIER_INL
21
22/*
23 *  _Barrier_Allocate
24 */
25#define _Barrier_Allocate() \
26  (Barrier_Control *) _Objects_Allocate( &_Barrier_Information )
27
28/*
29 *  _Barrier_Free
30 */
31#define _Barrier_Free( _the_barrier ) \
32  _Objects_Free( &_Barrier_Information, &(_the_barrier)->Object )
33
34/*
35 *  _Barrier_Get
36 */
37
38#define _Barrier_Get( _id, _location ) \
39  (Barrier_Control *) \
40  _Objects_Get( &_Barrier_Information, (_id), (_location) )
41
42/*
43 *  _Barrier_Is_null
44 */
45#define _Barrier_Is_null( _the_barrier ) \
46  ( (_the_barrier) == NULL )
47
48#endif
49/*  end of include file */
Note: See TracBrowser for help on using the repository browser.