mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:34:57 +00:00
LibC: Mark a bunch of functions as cancellation points
This commit is contained in:
parent
899fd74f8e
commit
c85f307e62
15 changed files with 78 additions and 0 deletions
|
@ -192,6 +192,8 @@ void pthread_cleanup_pop(int execute)
|
|||
// https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_join.html
|
||||
int pthread_join(pthread_t thread, void** exit_value_ptr)
|
||||
{
|
||||
__pthread_maybe_cancel();
|
||||
|
||||
int rc = syscall(SC_join_thread, thread, exit_value_ptr);
|
||||
__RETURN_PTHREAD_ERROR(rc);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue