OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [posix/] [src/] [mutex.c] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  $Id: mutex.c,v 1.2 2001-09-27 11:59:17 chris Exp $
3
 */
4
 
5
#include <assert.h>
6
#include <errno.h>
7
#include <pthread.h>
8
 
9
#include <rtems/system.h>
10
#include <rtems/score/coremutex.h>
11
#include <rtems/score/watchdog.h>
12
#if defined(RTEMS_MULTIPROCESSING)
13
#include <rtems/score/mpci.h>
14
#endif
15
#include <rtems/posix/mutex.h>
16
#include <rtems/posix/priority.h>
17
#include <rtems/posix/time.h>
18
 
19
/*PAGE
20
 *
21
 *  _POSIX_Mutex_Manager_initialization
22
 *
23
 *  This routine initializes all mutex manager related data structures.
24
 *
25
 *  Input parameters:
26
 *    maximum_mutexes - maximum configured mutexes
27
 *
28
 *  Output parameters:  NONE
29
 */
30
 
31
void _POSIX_Mutex_Manager_initialization(
32
  unsigned32 maximum_mutexes
33
)
34
{
35
  _Objects_Initialize_information(
36
    &_POSIX_Mutex_Information,
37
    OBJECTS_POSIX_MUTEXES,
38
    TRUE,
39
    maximum_mutexes,
40
    sizeof( POSIX_Mutex_Control ),
41
    FALSE,
42
    0,
43
    FALSE
44
  );
45
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.