source: rtems/cpukit/posix/src/pspin.c @ 92f4671

4.104.115
Last change on this file since 92f4671 was 309e2f6, checked in by Joel Sherrill <joel.sherrill@…>, on 12/17/08 at 21:23:37

2008-12-17 Joel Sherrill <joel.sherrill@…>

  • posix/include/rtems/posix/barrier.h, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/key.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/psignal.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/ptimer.h, posix/include/rtems/posix/rwlock.h, posix/include/rtems/posix/semaphore.h, posix/include/rtems/posix/spinlock.h, posix/include/rtems/posix/timer.h, posix/src/cond.c, posix/src/key.c, posix/src/mqueue.c, posix/src/mutex.c, posix/src/pbarrier.c, posix/src/prwlock.c, posix/src/psignal.c, posix/src/pspin.c, posix/src/pthread.c, posix/src/pthreadinitthreads.c, posix/src/ptimer.c, posix/src/semaphore.c, sapi/src/posixapi.c: Convert POSIX manager initialization routines to directly pull parameters from configuration table.
  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
2 *  Spinlock Manager
3 *
4 *  DESCRIPTION:
5 *
6 *  This package is the implementation of the Spinlock Manager.
7 *
8 *  Directives provided are:
9 *
10 *     + create a spinlock
11 *     + get an ID of a spinlock
12 *     + delete a spinlock
13 *     + acquire a spinlock
14 *     + release a spinlock
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.com/license/LICENSE.
22 *
23 *  $Id$
24 */
25
26#if HAVE_CONFIG_H
27#include "config.h"
28#endif
29
30#include <limits.h>
31
32#include <rtems/system.h>
33#include <rtems/config.h>
34#include <rtems/posix/spinlock.h>
35
36/**
37 *  @brief _POSIX_Spinlock_Manager_initialization
38 */
39
40void _POSIX_Spinlock_Manager_initialization(void)
41{
42  _Objects_Initialize_information(
43    &_POSIX_Spinlock_Information,    /* object information table */
44    OBJECTS_POSIX_API,               /* object API */
45    OBJECTS_POSIX_SPINLOCKS,         /* object class */
46    Configuration_POSIX_API.maximum_spinlocks,
47                                     /* maximum objects of this class */
48    sizeof( POSIX_Spinlock_Control ),/* size of this object's control block */
49    TRUE,                            /* TRUE if the name is a string */
50    _POSIX_PATH_MAX                  /* maximum length of each object's name */
51#if defined(RTEMS_MULTIPROCESSING)
52    ,
53    FALSE,                           /* TRUE if this is a global object class */
54    NULL                             /* Proxy extraction support callout */
55#endif
56  );
57}
Note: See TracBrowser for help on using the repository browser.