mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 18:05:07 +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
|
@ -51,8 +51,7 @@ void LibThread::Thread::start()
|
|||
[](void* arg) -> void* {
|
||||
Thread* self = static_cast<Thread*>(arg);
|
||||
size_t exit_code = self->m_action();
|
||||
self->m_tid = 0;
|
||||
pthread_exit((void*)exit_code);
|
||||
self->m_tid = 0;
|
||||
return (void*)exit_code;
|
||||
},
|
||||
static_cast<void*>(this));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue