RTEMS
Main Page
Related Pages
Modules
+
Classes
Class List
Class Index
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Functions
_
b
c
g
m
p
r
s
t
u
v
+
Variables
_
b
c
r
+
Typedefs
b
c
f
h
i
o
p
r
s
t
u
w
+
Enumerations
c
h
i
m
o
p
r
s
t
w
+
Enumerator
c
h
i
m
p
r
s
t
w
+
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
cpukit
score
src
coresem.c
Go to the documentation of this file.
1
8
/*
9
* COPYRIGHT (c) 1989-1999.
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.org/license/LICENSE.
15
*/
16
17
#ifdef HAVE_CONFIG_H
18
#include "config.h"
19
#endif
20
21
#include <
rtems/score/coresemimpl.h
>
22
23
void
_CORE_semaphore_Initialize
(
24
CORE_semaphore_Control
*the_semaphore,
25
uint32_t initial_value
26
)
27
{
28
the_semaphore->
count
= initial_value;
29
30
_Thread_queue_Object_initialize
( &the_semaphore->
Wait_queue
);
31
}
_CORE_semaphore_Initialize
void _CORE_semaphore_Initialize(CORE_semaphore_Control *the_semaphore, uint32_t initial_value)
Initializes the semaphore based on the parameters passed.
Definition:
coresem.c:23
CORE_semaphore_Control
Definition:
coresem.h:48
_Thread_queue_Object_initialize
void _Thread_queue_Object_initialize(Thread_queue_Control *the_thread_queue)
Initializes a thread queue embedded in an object with identifier.
Definition:
threadq.c:148
coresemimpl.h
Inlined Routines Associated with the SuperCore Semaphore.
CORE_semaphore_Control::Wait_queue
Thread_queue_Control Wait_queue
Definition:
coresem.h:52
CORE_semaphore_Control::count
uint32_t count
Definition:
coresem.h:55
Generated by
1.8.14