We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c25fe2b commit cf6e9ceCopy full SHA for cf6e9ce
src/common/debug.h
@@ -144,6 +144,14 @@ typedef struct {
144
} \
145
} while (0)
146
147
+#ifdef _WIN32
148
+# define tracing_mutex_unlock(x) do { \
149
+ (x)->mtx_status = MTX_UNLOCKED; \
150
+ (x)->mtx_owner = -1; \
151
+ pthread_mutex_unlock(&((x)->mtx_lock)); \
152
+ dbg_printf("[%i]: unlocked %s", __LINE__, # x); \
153
+} while (0)
154
+#else
155
# define tracing_mutex_unlock(x) do { \
156
(x)->mtx_status = MTX_UNLOCKED; \
157
(x)->mtx_owner = -1; \
@@ -153,6 +161,7 @@ typedef struct {
161
}; \
162
dbg_printf("[%i]: unlocked %s", __LINE__, # x); \
163
164
+#endif
165
166
typedef void (*dbg_func_t)(char const *fmt, ...);
158
167
0 commit comments