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

@@ -921,7 +921,8 @@ pc_close(thread_t *ptr)
/* Terminate the main thread. */
if (ptr != NULL) {
thread_kill(ptr);
is_quit = 1;
thread_wait(ptr, -1);
/* Wait some more. */
plat_delay_ms(200);