mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00
LibC: Implement pthread_testcancel
This commit is contained in:
parent
8d8b0d0a34
commit
7c0286a5c2
1 changed files with 6 additions and 0 deletions
|
@ -553,6 +553,12 @@ int pthread_cancel(pthread_t thread)
|
|||
return pthread_kill(thread, SIGCANCEL);
|
||||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_testcancel.html
|
||||
void pthread_testcancel(void)
|
||||
{
|
||||
__pthread_maybe_cancel();
|
||||
}
|
||||
|
||||
int pthread_setname_np(pthread_t thread, char const* name)
|
||||
{
|
||||
if (!name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue