remove resumethread

This commit is contained in:
NishiOwO 2025-04-07 19:52:22 +09:00
parent f17bc06b00
commit a9d3f0b1cb
No known key found for this signature in database
GPG Key ID: 27EF69B208EB9343

View File

@ -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;
}