We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e388eef commit 903e449Copy full SHA for 903e449
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; \
@@ -152,7 +160,8 @@ typedef struct {
160
assert(0); \
161
}; \
162
dbg_printf("[%i]: unlocked %s", __LINE__, # x); \
-} while (0)
163
164
+#endif
165
166
typedef void (*dbg_func_t)(char const *fmt, ...);
158
167
0 commit comments