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

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