xref: /aosp_15_r20/external/musl/src/thread/call_once.c (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1*c9945492SAndroid Build Coastguard Worker #include <threads.h>
2*c9945492SAndroid Build Coastguard Worker #include <pthread.h>
3*c9945492SAndroid Build Coastguard Worker 
call_once(once_flag * flag,void (* func)(void))4*c9945492SAndroid Build Coastguard Worker void call_once(once_flag *flag, void (*func)(void))
5*c9945492SAndroid Build Coastguard Worker {
6*c9945492SAndroid Build Coastguard Worker 	__pthread_once(flag, func);
7*c9945492SAndroid Build Coastguard Worker }
8