We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddd4315 commit e02fab6Copy full SHA for e02fab6
1 file changed
src/common/debug.h
@@ -147,7 +147,10 @@ typedef struct {
147
# define tracing_mutex_unlock(x) do { \
148
(x)->mtx_status = MTX_UNLOCKED; \
149
(x)->mtx_owner = -1; \
150
- pthread_mutex_unlock(&((x)->mtx_lock)); \
+ if (unlikely(pthread_mutex_unlock(&((x)->mtx_lock)) < 0)) {\
151
+ dbg_perror("pthread_mutex_unlock"); \
152
+ assert(0); \
153
+ }; \
154
dbg_printf("[%i]: unlocked %s", __LINE__, # x); \
155
} while (0)
156
0 commit comments