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.com/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/posix/barrierimpl.h> |
---|
25 | |
---|
26 | /** |
---|
27 | * @brief _POSIX_Barrier_Manager_initialization |
---|
28 | */ |
---|
29 | void _POSIX_Barrier_Manager_initialization(void) |
---|
30 | { |
---|
31 | _Objects_Initialize_information( |
---|
32 | &_POSIX_Barrier_Information, /* object information table */ |
---|
33 | OBJECTS_POSIX_API, /* object API */ |
---|
34 | OBJECTS_POSIX_BARRIERS, /* object class */ |
---|
35 | Configuration_POSIX_API.maximum_barriers, |
---|
36 | /* maximum objects of this class */ |
---|
37 | sizeof( POSIX_Barrier_Control ),/* size of this object's control block */ |
---|
38 | true, /* true if the name is a string */ |
---|
39 | _POSIX_PATH_MAX /* maximum length of each object's name */ |
---|
40 | #if defined(RTEMS_MULTIPROCESSING) |
---|
41 | , |
---|
42 | false, /* true if this is a global object class */ |
---|
43 | NULL /* Proxy extraction support callout */ |
---|
44 | #endif |
---|
45 | ); |
---|
46 | } |
---|