ae2f_docs
WaitWake.cc
Go to the documentation of this file.
1#if __cplusplus >= 201103L
2
3#include <ae2f/Lock.h>
4#include <thread>
5
7
8void P() {
9 __ae2f_Wait(&el, 0);
10}
11
12int main() {
13 std::thread td(P);
14 el = 1;
15
17 td.join();
18
19 return 0;
20}
21
22#else
23int main() { return 0; }
24#endif
#define __ae2f_Wait
Definition Lock.h:166
#define __ae2f_WakeSingle
Definition Lock.h:167
#define ae2f_addrel_t
Address element type.
Definition Lock.h:111
int main()
ae2f_addrel_t el
Definition WaitWake.c:6