Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
lib
libc
wasi
thread-stub
pthread_once.c
pretty
plain
permalink
blame
history
•
12 lines
•
240 B
1
#include "pthread_impl.h"
2
3
int __pthread_once(pthread_once_t *control, void (*init)(void))
4
{
5
if (!*control) {
6
init();
7
*control = 1;
8
}
9
return 0;
10
}
11
12
weak_alias(__pthread_once, pthread_once);