[client] wayland: implement epoll registration mechanism

This will be used to register async clipboard I/O callbacks later.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-02-21 10:31:49 +11:00
1 parent 30a888711b
commit e01666b6ad
2 files changed
+148 -10

No files matched your search

+2 -2
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