1 #include <threads.h> 2 #include <pthread.h> 3 4 void call_once(once_flag *flag, void (*func)(void)) 5 { 6 __pthread_once(flag, func); 7 } 8