Skip to content

Commit

Permalink
Simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed May 28, 2023
1 parent 90115e2 commit c4d22cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libretro-common/rthreads/rthreads.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit c4d22cf

Please sign in to comment.