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