ae2f_docs
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
submod
ae2f
Core
test
WaitWake.cc
Go to the documentation of this file.
1
#
if
__cplusplus
>=
201103L
2
3
#
include
<
ae2f
/
Lock
.
h
>
4
#
include
<
thread
>
5
6
ae2f_addrel_t
el
= 0;
7
8
void
P() {
9
__ae2f_Wait
(&el, 0);
10
}
11
12
int
main
() {
13
std::thread td(P);
14
el
= 1;
15
16
__ae2f_WakeSingle
(&el);
17
td.join();
18
19
return
0;
20
}
21
22
#
else
23
int
main() {
return
0; }
24
#
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.cc:35
el
ae2f_addrel_t el
Definition
WaitWake.c:6
Generated by
1.14.0