musl/src/thread/call_once.c
Jens Gustedt e16f70f452 add C11 thread functions operating on tss_t and once_flag
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.
2014-09-06 21:38:04 -04:00

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);
}