Merge pull request #1076 from BytesGalore/remove_return_from_noreturn_function
sys:posix:pthread removed explicit `return;` from `pthread_exit()`
This commit is contained in:
commit
f4a994ac89
@ -169,10 +169,8 @@ void pthread_exit(void *retval)
|
||||
|
||||
if (self_id == 0) {
|
||||
DEBUG("ERROR called pthread_self() returned 0 in \"%s\"!\n", __func__);
|
||||
sched_task_exit();
|
||||
return;
|
||||
}
|
||||
|
||||
else {
|
||||
pthread_thread_t *self = pthread_sched_threads[self_id-1];
|
||||
|
||||
while (self->cleanup_top) {
|
||||
@ -200,6 +198,8 @@ void pthread_exit(void *retval)
|
||||
m.content.ptr = self->stack;
|
||||
msg_send_int(&m, pthread_reaper_pid);
|
||||
}
|
||||
}
|
||||
|
||||
sched_task_exit();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user