mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 12:14:39 +00:00
remove resumethread
This commit is contained in:
parent
f17bc06b00
commit
a9d3f0b1cb
@ -23,11 +23,7 @@ nb_thread_t* nb_create_thread(void (*func)(void*), void* userdata) {
|
||||
nb_thread_t* thread = malloc(sizeof(*thread));
|
||||
thread->context.func = func;
|
||||
thread->context.data = userdata;
|
||||
if((thread->thread = CreateThread(NULL, 0, nb_wrap_thread, &thread->context, 0, NULL)) != NULL) {
|
||||
/* XXX: Is this needed? */
|
||||
ResumeThread(thread->thread);
|
||||
return thread;
|
||||
}
|
||||
if((thread->thread = CreateThread(NULL, 0, nb_wrap_thread, &thread->context, 0, NULL)) != NULL) return thread;
|
||||
free(thread);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user