source: rtems/cpukit/itron/include/rtems/itron/semaphore.h @ 6df1f64

4.104.114.84.95
Last change on this file since 6df1f64 was 6df1f64, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 28, 2005 at 11:07:14 AM

New header guards.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file rtems/itron/semaphore.h
3 */
4
5/*
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#ifndef _RTEMS_ITRON_SEMAPHORE_H
17#define _RTEMS_ITRON_SEMAPHORE_H
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#include <rtems/itron/object.h>
24#include <rtems/score/coresem.h>
25
26/*
27 *  The following defines the control block used to manage each semaphore.
28 */
29
30typedef struct {
31  ITRON_Objects_Control   Object;
32  boolean                 is_priority_blocking;
33  CORE_semaphore_Control  semaphore;
34}   ITRON_Semaphore_Control;
35
36/*
37 *  The following defines the information control block used to manage
38 *  this class of objects.
39 */
40
41ITRON_EXTERN Objects_Information  _ITRON_Semaphore_Information;
42
43/*
44 *  _ITRON_Semaphore_Manager_initialization
45 *
46 *  DESCRIPTION:
47 *
48 *  This routine performs the initialization necessary for this manager.
49 */
50
51void _ITRON_Semaphore_Manager_initialization(
52  uint32_t   maximum_semaphores
53);
54
55#include <rtems/itron/semaphore.inl>
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif
62/* end of include file */
Note: See TracBrowser for help on using the repository browser.