vkd3d: Use pthread reimplementation only on MSVC

We can use pthreads properly under MinGW
This commit is contained in:
Joshua Ashton 2020-06-24 06:25:48 +01:00 committed by Hans-Kristian Arntzen
parent fb02f28c41
commit 4c819baad3
1 changed files with 2 additions and 4 deletions

View File

@ -21,7 +21,7 @@
#include "vkd3d_memory.h"
#if defined(_WIN32)
#if defined(_MSC_VER)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -147,14 +147,12 @@ static inline void vkd3d_set_thread_name(const char *name)
{
(void)name;
}
#elif defined(__linux__)
#else
#include <pthread.h>
static inline void vkd3d_set_thread_name(const char *name)
{
pthread_setname_np(pthread_self(), name);
}
#else
#error "Threads are not supported. Cannot build."
#endif