mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:48:11 +00:00
LibPThread: Make pthread_exit a noreturn function
LibPThread: mark pthread_exit a noreturn function using compiler attributes LibThread: remove a call to pthread_exit from Thread::start lambda expression as it make the return of teh lambda unreachable.
This commit is contained in:
parent
19d6884529
commit
f2d3cc7325
3 changed files with 3 additions and 3 deletions
|
@ -83,6 +83,7 @@ static int create_thread(void* (*entry)(void*), void* argument, PthreadAttrImpl*
|
|||
return syscall(SC_create_thread, pthread_create_helper, thread_params);
|
||||
}
|
||||
|
||||
[[noreturn]]
|
||||
static void exit_thread(void* code)
|
||||
{
|
||||
syscall(SC_exit_thread, code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue