Clean up FIFO threads on 2D cards on exit/reset. Patch from bit.

This commit is contained in:
SarahW 2017-04-12 20:46:21 +01:00
commit c466cfa24b
5 changed files with 20 additions and 0 deletions

View file

@ -2635,6 +2635,10 @@ void mach64_close(void *p)
svga_close(&mach64->svga);
thread_kill(mach64->fifo_thread);
thread_destroy_event(mach64->wake_fifo_thread);
thread_destroy_event(mach64->fifo_not_full_event);
free(mach64);
}

View file

@ -1221,6 +1221,10 @@ void et4000w32p_close(void *p)
svga_close(&et4000->svga);
thread_kill(et4000->fifo_thread);
thread_destroy_event(et4000->wake_fifo_thread);
thread_destroy_event(et4000->fifo_not_full_event);
free(et4000);
}

View file

@ -2264,6 +2264,10 @@ void s3_close(void *p)
svga_close(&s3->svga);
thread_kill(s3->fifo_thread);
thread_destroy_event(s3->wake_fifo_thread);
thread_destroy_event(s3->fifo_not_full_event);
free(s3);
}

View file

@ -3943,6 +3943,10 @@ static void s3_virge_close(void *p)
thread_destroy_event(virge->wake_main_thread);
thread_destroy_event(virge->wake_render_thread);
thread_kill(virge->fifo_thread);
thread_destroy_event(virge->wake_fifo_thread);
thread_destroy_event(virge->fifo_not_full_event);
svga_close(&virge->svga);
free(virge);

View file

@ -552,6 +552,10 @@ void tgui_close(void *p)
svga_close(&tgui->svga);
thread_kill(tgui->fifo_thread);
thread_destroy_event(tgui->wake_fifo_thread);
thread_destroy_event(tgui->fifo_not_full_event);
free(tgui);
}