source: rtems/cpukit/posix/src/prwlock.c @ 74d0cb44

4.104.114.95
Last change on this file since 74d0cb44 was 74d0cb44, checked in by Joel Sherrill <joel.sherrill@…>, on 01/31/08 at 16:15:34

2008-01-31 Joel Sherrill <joel.sherrill@…>

  • posix/src/cond.c, posix/src/key.c, posix/src/mqueuenametoid.c, posix/src/mutex.c, posix/src/pbarrier.c, posix/src/prwlock.c, posix/src/pspin.c, posix/src/pthread.c, posix/src/ptimer.c, posix/src/semaphorenametoid.c: Add option for all POSIX objects whether named or unnamed to have a string name. If the API does not directly support having a name, then the user must explicitly assign it using rtems_object_set_name().
  • rtems/src/rtemsobjectgetapiclassname.c: Improved testability.
  • score/include/rtems/score/object.h, score/src/objectgetnameasstring.c, score/src/objectnametoidstring.c, score/src/objectsetname.c: Modifications required to pass testing of recently modified object name operations. Also eliminated multiprocessing related code that was not reachable.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  RWLock Manager -- Initialization
3 *
4 *  COPYRIGHT (c) 1989-2006.
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.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <rtems/system.h>
19#include <rtems/posix/rwlock.h>
20
21/**
22 *  @brief _POSIX_RWLock_Manager_initialization
23 *
24 *  Input parameters:
25 *    maximum_rwlocks - maximum configured rwlocks
26 *
27 *  Output parameters:  NONE
28 */
29
30void _POSIX_RWLock_Manager_initialization(
31  uint32_t   maximum_rwlocks
32)
33{
34  _Objects_Initialize_information(
35    &_POSIX_RWLock_Information,     /* object information table */
36    OBJECTS_POSIX_API,              /* object API */
37    OBJECTS_POSIX_SPINLOCKS,        /* object class */
38    maximum_rwlocks,                /* maximum objects of this class */
39    sizeof( POSIX_RWLock_Control ), /* size of this object's control block */
40    TRUE,                           /* TRUE if the name is a string */
41    _POSIX_PATH_MAX             /* maximum length of each object's name */
42#if defined(RTEMS_MULTIPROCESSING)
43    ,
44    FALSE,                         /* TRUE if this is a global object class */
45    NULL                           /* Proxy extraction support callout */
46#endif
47  );
48}
Note: See TracBrowser for help on using the repository browser.