mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-29 12:56:37 +08:00
Free task thread on exit.
This commit is contained in:
parent
e1fd4f7b09
commit
267d08fbda
@ -951,6 +951,9 @@ void task_exit() {
|
|||||||
if(task_thread_ptr != NULL) {
|
if(task_thread_ptr != NULL) {
|
||||||
svcSignalEvent(events[EVENT_QUIT]);
|
svcSignalEvent(events[EVENT_QUIT]);
|
||||||
threadJoin(task_thread_ptr, U64_MAX);
|
threadJoin(task_thread_ptr, U64_MAX);
|
||||||
|
|
||||||
|
threadFree(task_thread_ptr);
|
||||||
|
task_thread_ptr = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i = 0; i < EVENT_COUNT; i++) {
|
for(int i = 0; i < EVENT_COUNT; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user