source: rtems/cpukit/posix/src/cond.c @ be1b8a7

4.115
Last change on this file since be1b8a7 was 35210b12, checked in by Sebastian Huber <sebastian.huber@…>, on 07/19/13 at 10:08:02

posix: Create condition variable impl header

Move implementation specific parts of cond.h and cond.inl into new
header file condimpl.h. The cond.h contains now only the application
visible API.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/**
2 * @file
3 *
4 * @brief Initialization Necessary for this Manager
5 * @ingroup POSIX_COND_VARS Condition Variables
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2008.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <pthread.h>
22#include <errno.h>
23#include <limits.h>
24
25#include <rtems/system.h>
26#include <rtems/config.h>
27#include <rtems/score/object.h>
28#include <rtems/score/states.h>
29#include <rtems/score/watchdog.h>
30#include <rtems/posix/condimpl.h>
31#include <rtems/posix/time.h>
32#include <rtems/posix/muteximpl.h>
33
34/*
35 *  _POSIX_Condition_variables_Manager_initialization
36 *
37 *  This routine initializes all condition variable manager related data
38 *  structures.
39 *
40 *  Input parameters:   NONE
41 *
42 *  Output parameters:  NONE
43 */
44
45void _POSIX_Condition_variables_Manager_initialization(void)
46{
47  _Objects_Initialize_information(
48    &_POSIX_Condition_variables_Information, /* object information table */
49    OBJECTS_POSIX_API,                       /* object API */
50    OBJECTS_POSIX_CONDITION_VARIABLES,       /* object class */
51    Configuration_POSIX_API.maximum_condition_variables,
52                                /* maximum objects of this class */
53    sizeof( POSIX_Condition_variables_Control ),
54                                /* size of this object's control block */
55    true,                       /* true if names for this object are strings */
56    _POSIX_PATH_MAX             /* maximum length of each object's name */
57#if defined(RTEMS_MULTIPROCESSING)
58    ,
59    false,                      /* true if this is a global object class */
60    NULL                        /* Proxy extraction support callout */
61#endif
62  );
63}
Note: See TracBrowser for help on using the repository browser.