1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:17:35 +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:
Muhammad Zahalqa 2020-07-18 22:35:12 +03:00 committed by Andreas Kling
parent 19d6884529
commit f2d3cc7325
3 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@
__BEGIN_DECLS
int pthread_create(pthread_t*, pthread_attr_t*, void* (*)(void*), void*);
void pthread_exit(void*);
void pthread_exit(void*) __attribute__ ((noreturn));
int pthread_kill(pthread_t, int);
void pthread_cleanup_push(void (*)(void*), void*);
void pthread_cleanup_pop(int);