source: rtems/cpukit/posix/src/pbarrier.c @ f05eeb2

5
Last change on this file since f05eeb2 was f05eeb2, checked in by Sebastian Huber <sebastian.huber@…>, on 04/19/16 at 11:39:00

score: Simplify _Objects_Initialize_information()

Remove unused supports_global parameter. Convert
_Objects_Initialize_information() to a macro to avoid use of
RTEMS_MULTIPROCESSING define for each caller.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/**
2 *  @file
3 *
4 *  This file initializes the POSIX Barrier Manager.
5 */
6
7/*
8 *  COPYRIGHT (c) 1989-2013.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.org/license/LICENSE.
14 */
15
16#if HAVE_CONFIG_H
17#include "config.h"
18#endif
19
20#include <limits.h>
21
22#include <rtems/system.h>
23#include <rtems/config.h>
24#include <rtems/sysinit.h>
25#include <rtems/posix/barrierimpl.h>
26
27Objects_Information _POSIX_Barrier_Information;
28
29/**
30 *  @brief _POSIX_Barrier_Manager_initialization
31 */
32static void _POSIX_Barrier_Manager_initialization(void)
33{
34  _Objects_Initialize_information(
35    &_POSIX_Barrier_Information,    /* object information table */
36    OBJECTS_POSIX_API,              /* object API */
37    OBJECTS_POSIX_BARRIERS,         /* object class */
38    Configuration_POSIX_API.maximum_barriers,
39                                    /* maximum objects of this class */
40    sizeof( POSIX_Barrier_Control ),/* size of this object's control block */
41    true,                           /* true if the name is a string */
42    _POSIX_PATH_MAX,                /* maximum length of each object's name */
43    NULL                            /* Proxy extraction support callout */
44  );
45}
46
47RTEMS_SYSINIT_ITEM(
48  _POSIX_Barrier_Manager_initialization,
49  RTEMS_SYSINIT_POSIX_BARRIER,
50  RTEMS_SYSINIT_ORDER_MIDDLE
51);
Note: See TracBrowser for help on using the repository browser.