[client] wayland: implement epoll registration mechanism

This will be used to register async clipboard I/O callbacks later.
This commit is contained in:
Quantum
2021-02-11 01:52:41 -05:00
committed by Geoffrey McRae
parent 30a888711b
commit e01666b6ad
2 changed files with 148 additions and 10 deletions

View File

@@ -36,9 +36,9 @@ typedef atomic_flag LG_Lock;
#define INTERLOCKED_INC(x) atomic_fetch_add((x), 1)
#define INTERLOCKED_DEC(x) atomic_fetch_sub((x), 1)
#define INTERLOCKED_SECTION(lock, x) \
#define INTERLOCKED_SECTION(lock, ...) \
LG_LOCK(lock) \
x \
__VA_ARGS__ \
LG_UNLOCK(lock)
#endif