ae2f_docs
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
submod
ae2f
Core
test
WaitWake.c
Go to the documentation of this file.
1
#
include
<
ae2f
/
Lock
.
h
>
2
3
#
if
!
ae2f_IS_WIN
4
#
include
<
pthread
.
h
>
5
6
ae2f_addrel_t
el
= 0;
7
8
void
*
P
(
void
*) {
9
__ae2f_Wait
(&el, 0);
10
return
NULL;
11
}
12
13
int
main
() {
14
pthread_t thread;
15
pthread_create(&thread, 0,
P
, 0);
16
el
= 1;
17
__ae2f_WakeSingle
(&el);
18
return
pthread_join(thread, 0);
19
}
20
#
else
21
int
main() {
return
0; }
22
23
#
endif
__ae2f_Wait
#define __ae2f_Wait
Definition
Lock.h:166
__ae2f_WakeSingle
#define __ae2f_WakeSingle
Definition
Lock.h:167
ae2f_addrel_t
#define ae2f_addrel_t
Address element type.
Definition
Lock.h:111
main
int main()
Definition
MlpTrainXOR-Made-Primal.c:72
ae2f_IS_WIN
#define ae2f_IS_WIN
Definition
Platform.h:7
el
ae2f_addrel_t el
Definition
WaitWake.c:6
P
void * P(void *)
Definition
WaitWake.c:8
Generated by
1.14.0