Removed all usage of TerminateThread()/thread_kill(), thread_wait() is used instead now.

This commit is contained in:
OBattler
2021-07-16 06:45:32 +02:00
parent 5b983702d1
commit 78c3f6759f
12 changed files with 64 additions and 36 deletions

View File

@@ -1605,7 +1605,7 @@ static void render_thread(void *param, int odd_even)
{
voodoo_t *voodoo = (voodoo_t *)param;
while (1)
while (voodoo->render_thread_run[odd_even])
{
thread_set_event(voodoo->render_not_full_event[odd_even]);
thread_wait_event(voodoo->wake_render_thread[odd_even], -1);