From 24100cac07d6d0b10e8bfafb3ad4361cf8b70b97 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Wed, 18 Nov 2020 16:33:00 +0100 Subject: [PATCH] vkd3d: Add Win32 PTHREAD_MUTEX_INITIALIZER. Signed-off-by: Georg Lehmann --- include/private/vkd3d_threads.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/private/vkd3d_threads.h b/include/private/vkd3d_threads.h index c806cb15..a252a64b 100644 --- a/include/private/vkd3d_threads.h +++ b/include/private/vkd3d_threads.h @@ -43,6 +43,8 @@ typedef struct pthread_mutex SRWLOCK lock; } pthread_mutex_t; +#define PTHREAD_MUTEX_INITIALIZER {SRWLOCK_INIT} + /* pthread_cond_t is not copyable, so embed CV inline. */ typedef struct pthread_cond {