mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
LibPthread: Add POSIX spec links for pthread_once API
This commit is contained in:
parent
800f14298d
commit
29716b9624
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
Add a link
Reference in a new issue