From 29716b9624b41e9fb5b1ff1759cb3732997e5806 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Fri, 7 Jan 2022 00:35:05 -0800 Subject: [PATCH] LibPthread: Add POSIX spec links for pthread_once API --- Userland/Libraries/LibPthread/pthread_once.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibPthread/pthread_once.cpp b/Userland/Libraries/LibPthread/pthread_once.cpp index 577a201810..ab435d4639 100644 --- a/Userland/Libraries/LibPthread/pthread_once.cpp +++ b/Userland/Libraries/LibPthread/pthread_once.cpp @@ -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&>(*self);