RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
semaphore.h
Go to the documentation of this file.
1
10/*
11 * COPYRIGHT (c) 1989-2011.
12 * On-Line Applications Research Corporation (OAR).
13 *
14 * The license and distribution terms for this file may be
15 * found in the file LICENSE in this distribution or at
16 * http://www.rtems.org/license/LICENSE.
17 */
18
19#ifndef _RTEMS_POSIX_SEMAPHORE_H
20#define _RTEMS_POSIX_SEMAPHORE_H
21
23
24#include <limits.h>
25#include <semaphore.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
40/*
41 * Data Structure used to manage a POSIX semaphore
42 */
43
44typedef struct {
45 Objects_Control Object;
46 sem_t Semaphore;
47 bool linked;
48 uint32_t open_count;
50
55
65#define POSIX_SEMAPHORE_INFORMATION_DEFINE( max ) \
66 OBJECTS_INFORMATION_DEFINE( \
67 _POSIX_Semaphore, \
68 OBJECTS_POSIX_API, \
69 OBJECTS_POSIX_SEMAPHORES, \
70 POSIX_Semaphore_Control, \
71 max, \
72 _POSIX_PATH_MAX, \
73 NULL \
74 )
75
78#ifdef __cplusplus
79}
80#endif
81
82#endif
83/* end of include file */
Objects_Information _POSIX_Semaphore_Information
The POSIX Semaphore objects information.
Object Handler Data Structures.
Private Support Information for POSIX Semaphores.
Definition: objectdata.h:39
The information structure used to manage each API class of objects.
Definition: objectdata.h:176
Definition: semaphore.h:44