source: rtems/cpukit/posix/src/prwlock.c @ 04da96c7

5
Last change on this file since 04da96c7 was 76a8328, checked in by Sebastian Huber <sebastian.huber@…>, on 12/14/15 at 15:39:10

Optional POSIX RWLock initialization

Update #2408.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *  RWLock Manager -- Initialization
3 *
4 *  COPYRIGHT (c) 1989-2008.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.org/license/LICENSE.
10 */
11
12#if HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <limits.h>
17
18#include <rtems/system.h>
19#include <rtems/config.h>
20#include <rtems/sysinit.h>
21#include <rtems/posix/rwlockimpl.h>
22
23Objects_Information _POSIX_RWLock_Information;
24
25/**
26 *  @brief _POSIX_RWLock_Manager_initialization
27 */
28
29static void _POSIX_RWLock_Manager_initialization(void)
30{
31  _Objects_Initialize_information(
32    &_POSIX_RWLock_Information,     /* object information table */
33    OBJECTS_POSIX_API,              /* object API */
34    OBJECTS_POSIX_SPINLOCKS,        /* object class */
35    Configuration_POSIX_API.maximum_rwlocks,
36                                    /* maximum objects of this class */
37    sizeof( POSIX_RWLock_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}
47
48RTEMS_SYSINIT_ITEM(
49  _POSIX_RWLock_Manager_initialization,
50  RTEMS_SYSINIT_POSIX_RWLOCK,
51  RTEMS_SYSINIT_ORDER_MIDDLE
52);
Note: See TracBrowser for help on using the repository browser.