mirror of
https://github.com/fluencelabs/musl
synced 2025-05-29 07:31:53 +00:00
These all have POSIX equivalents, but aside from tss_get, they all have minor changes to the signature or return value and thus need to exist as separate functions.
9 lines
157 B
C
9 lines
157 B
C
#include <threads.h>
|
|
|
|
int __pthread_once(once_flag *, void (*)(void));
|
|
|
|
void call_once(once_flag *flag, void (*func)(void))
|
|
{
|
|
__pthread_once(flag, func);
|
|
}
|