source: rtems/c/src/exec/itron/include/rtems/itron/semaphore.h @ 352c9b2

4.104.114.84.95
Last change on this file since 352c9b2 was 352c9b2, checked in by Joel Sherrill <joel.sherrill@…>, on 11/09/99 at 22:07:23

This patch adds the basic framework for the ITRON 3.0 API implementation
for RTEMS.

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