summaryrefslogtreecommitdiff
path: root/src/thread/call_once.c
blob: a7bc93532bc5e936395b8aec207eda9d12b9cccf (plain)
1
2
3
4
5
6
7
8
#include <threads.h>

int __pthread_once(once_flag *, void (*)(void));

void call_once(once_flag *flag, void (*func)(void))
{
	__pthread_once(flag, func);
}