From c4d22cf51f945bff96e566a76da801a5d18a721a Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sun, 28 May 2023 22:45:46 +0200 Subject: [PATCH] Simplification --- libretro-common/rthreads/rthreads.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libretro-common/rthreads/rthreads.c b/libretro-common/rthreads/rthreads.c index 0d2b273f41..b923a8e290 100644 --- a/libretro-common/rthreads/rthreads.c +++ b/libretro-common/rthreads/rthreads.c @@ -203,14 +203,12 @@ sthread_t *sthread_create_with_priority(void (*thread_func)(void*), void *userda data->func = thread_func; data->userdata = userdata; -#ifdef USE_WIN32_THREADS thread->id = 0; +#ifdef USE_WIN32_THREADS thread->thread = CreateThread(NULL, 0, thread_wrap, data, 0, &thread->id); thread_created = !!thread->thread; #else - thread->id = 0; - #ifdef HAVE_THREAD_ATTR pthread_attr_init(&thread_attr);