source: rtems/cpukit/rtems/src/barrier.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
2 *  Barrier Manager
3 *
4 *  DESCRIPTION:
5 *
6 *  This package is the implementation of the Barrier Manager.
7 *
8 *  Directives provided are:
9 *
10 *     + create a barrier
11 *     + get an ID of a barrier
12 *     + delete a barrier
13 *     + acquire a barrier
14 *     + release a barrier
15 *
16 *  COPYRIGHT (c) 1989-2008.
17 *  On-Line Applications Research Corporation (OAR).
18 *
19 *  The license and distribution terms for this file may be
20 *  found in the file LICENSE in this distribution or at
21 *  http://www.rtems.org/license/LICENSE.
22 */
23
24#if HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <rtems/system.h>
29#include <rtems/config.h>
30#include <rtems/rtems/status.h>
31#include <rtems/rtems/support.h>
32#include <rtems/rtems/barrierimpl.h>
33
34/**
35 *  @brief _Barrier_Manager_initialization
36 *
37 *  Input parameters:   NONE
38 *
39 *  Output parameters:  NONE
40 */
41
42void _Barrier_Manager_initialization(void)
43{
44  _Objects_Initialize_information(
45    &_Barrier_Information,         /* object information table */
46    OBJECTS_CLASSIC_API,           /* object API */
47    OBJECTS_RTEMS_BARRIERS,        /* object class */
48    Configuration_RTEMS_API.maximum_barriers,
49                                   /* maximum objects of this class */
50    sizeof( Barrier_Control ),     /* size of this object's control block */
51    false,                         /* true if the name is a string */
52    RTEMS_MAXIMUM_NAME_LENGTH      /* maximum length of an object name */
53#if defined(RTEMS_MULTIPROCESSING)
54    ,
55    false,                         /* true if this is a global object class */
56    NULL                           /* Proxy extraction support callout */
57#endif
58  );
59}
Note: See TracBrowser for help on using the repository browser.