mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
12 lines
240 B
C
Vendored
12 lines
240 B
C
Vendored
#include "pthread_impl.h"
|
|
|
|
int __pthread_once(pthread_once_t *control, void (*init)(void))
|
|
{
|
|
if (!*control) {
|
|
init();
|
|
*control = 1;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
weak_alias(__pthread_once, pthread_once);
|