mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-25 18:52:22 -05: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: https://github.com/SerenityOS/serenity/commit/29716b9624b 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,
|
||||
};
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_once.html
|
||||
int pthread_once(pthread_once_t* self, void (*callback)(void))
|
||||
{
|
||||
auto& state = reinterpret_cast<Atomic<State>&>(*self);
|
||||
|
|
Loading…
Add table
Reference in a new issue