aboutsummaryrefslogtreecommitdiffstats
path: root/internal-linux.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-05-10 13:44:06 +0200
committerMattias Andrée <maandree@kth.se>2020-05-10 13:44:06 +0200
commit4a968d807d2ec611f443d704ae875911894c04e2 (patch)
treea7c1d4f178842bb6971c7a4b2c159049df794dd0 /internal-linux.h
parentFix struct for ClientMessage event (diff)
downloadlibaxl-4a968d807d2ec611f443d704ae875911894c04e2.tar.gz
libaxl-4a968d807d2ec611f443d704ae875911894c04e2.tar.bz2
libaxl-4a968d807d2ec611f443d704ae875911894c04e2.tar.xz
A few things
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--internal-linux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal-linux.h b/internal-linux.h
index 4fb2ee3..553a783 100644
--- a/internal-linux.h
+++ b/internal-linux.h
@@ -26,13 +26,13 @@ _Static_assert(sizeof(MUTEX) == sizeof(uint32_t));
do {\
atomic_store(&(MUTEX), 0);\
if (syscall(SYS_futex, &(MUTEX), FUTEX_PRIVATE_FLAG | FUTEX_WAKE, INT_MAX, NULL, 0, 0) < 0) {\
- /* TODO */\
+ /* TODO handle of error in _UNLOCK */\
}\
} while (0)
#define _WAIT(MUTEX)\
do {\
if (syscall(SYS_futex, &(MUTEX), FUTEX_PRIVATE_FLAG | FUTEX_WAIT, 1, NULL, 0, 0) < 0) {\
- /* TODO */\
+ /* TODO handle of error in _WAIT */\
}\
} while (0)