mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
LibPthread: Add POSIX spec links for pthread_once API
This commit is contained in:
parent
800f14298d
commit
29716b9624
Notes:
sideshowbarker
2024-07-17 21:30:26 +09:00
Author: https://github.com/bgianfo
Commit: 29716b9624
Pull-request: https://github.com/SerenityOS/serenity/pull/11691
Reviewed-by: https://github.com/Quaker762 ✅
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ enum State : i32 {
|
||||||
PERFORMING_WITH_WAITERS,
|
PERFORMING_WITH_WAITERS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_once.html
|
||||||
int pthread_once(pthread_once_t* self, void (*callback)(void))
|
int pthread_once(pthread_once_t* self, void (*callback)(void))
|
||||||
{
|
{
|
||||||
auto& state = reinterpret_cast<Atomic<State>&>(*self);
|
auto& state = reinterpret_cast<Atomic<State>&>(*self);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue