ae2f_docs
WaitWake.c
Go to the documentation of this file.
1#include <ae2f/Lock.h>
2
4#include <pthread.h>
5
7
8void* P(void*) {
9 __ae2f_Wait(&el, 0);
10 return NULL;
11}
12
13int main() {
14 pthread_t thread;
15 pthread_create(&thread, 0, P, 0);
16 el = 1;
18 return pthread_join(thread, 0);
19}
20#else
21int main() { return 0; }
22
23#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
#define ae2f_IS_WIN
Definition Platform.h:7
ae2f_addrel_t el
Definition WaitWake.c:6
void * P(void *)
Definition WaitWake.c:8