Simplification
This commit is contained in:
parent
90115e2dc9
commit
c4d22cf51f
|
@ -203,14 +203,12 @@ sthread_t *sthread_create_with_priority(void (*thread_func)(void*), void *userda
|
||||||
data->func = thread_func;
|
data->func = thread_func;
|
||||||
data->userdata = userdata;
|
data->userdata = userdata;
|
||||||
|
|
||||||
#ifdef USE_WIN32_THREADS
|
|
||||||
thread->id = 0;
|
thread->id = 0;
|
||||||
|
#ifdef USE_WIN32_THREADS
|
||||||
thread->thread = CreateThread(NULL, 0, thread_wrap,
|
thread->thread = CreateThread(NULL, 0, thread_wrap,
|
||||||
data, 0, &thread->id);
|
data, 0, &thread->id);
|
||||||
thread_created = !!thread->thread;
|
thread_created = !!thread->thread;
|
||||||
#else
|
#else
|
||||||
thread->id = 0;
|
|
||||||
|
|
||||||
#ifdef HAVE_THREAD_ATTR
|
#ifdef HAVE_THREAD_ATTR
|
||||||
pthread_attr_init(&thread_attr);
|
pthread_attr_init(&thread_attr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue