mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibC: Implement pthread_testcancel
This commit is contained in:
parent
8d8b0d0a34
commit
7c0286a5c2
Notes:
sideshowbarker
2024-07-17 04:45:26 +09:00
Author: https://github.com/clemenswasser 🔰 Commit: https://github.com/SerenityOS/serenity/commit/7c0286a5c2 Pull-request: https://github.com/SerenityOS/serenity/pull/15943 Reviewed-by: https://github.com/ADKaster
@ -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…
Reference in New Issue
Block a user