mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 20:58:16 +00:00
LibPthread: Implement pthread_condattr_getclock
I noticed this was missing while adding spec comments a bit ago. It's small and easy enough to implement, might as well make us more POSIX compliant.
This commit is contained in:
parent
860d142c8c
commit
84962fcc9b
Notes:
sideshowbarker
2024-07-17 21:21:22 +09:00
Author: https://github.com/bgianfo
Commit: 84962fcc9b
Pull-request: https://github.com/SerenityOS/serenity/pull/11750
Reviewed-by: https://github.com/alimpfard
2 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,13 @@ int pthread_condattr_destroy(pthread_condattr_t*)
|
|||
return 0;
|
||||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_condattr_getclock.html
|
||||
int pthread_condattr_getclock(pthread_condattr_t* attr, clockid_t* clock)
|
||||
{
|
||||
*clock = attr->clockid;
|
||||
return 0;
|
||||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_condattr_setclock.html
|
||||
int pthread_condattr_setclock(pthread_condattr_t* attr, clockid_t clock)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue