LibC: Implement pthread_testcancel

This commit is contained in:
Clemens Wasser 2022-11-05 23:56:07 +01:00 committed by Andrew Kaster
parent 8d8b0d0a34
commit 7c0286a5c2
Notes: sideshowbarker 2024-07-17 04:45:26 +09:00

View file

@ -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)