FreeRDP
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Functions
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Functions
a
c
d
e
f
g
i
o
r
s
t
Variables
a
b
c
d
e
g
i
l
m
n
o
p
r
s
t
u
v
Files
File List
Globals
All
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Modules
Pages
Loading...
Searching...
No Matches
TestSynchSemaphore.c
1
2
#include <winpr/crt.h>
3
#include <winpr/synch.h>
4
5
int
TestSynchSemaphore(
int
argc,
char
* argv[])
6
{
7
HANDLE semaphore = NULL;
8
WINPR_UNUSED(argc);
9
WINPR_UNUSED(argv);
10
semaphore = CreateSemaphore(NULL, 0, 1, NULL);
11
12
if
(!semaphore)
13
{
14
printf(
"CreateSemaphore failure\n"
);
15
return
-1;
16
}
17
18
(void)CloseHandle(semaphore);
19
20
return
0;
21
}
winpr
libwinpr
synch
test
TestSynchSemaphore.c
Generated by
1.9.8