1 /* 2 * Copyright (c) 2023, Meta 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <errno.h> 8 #include <threads.h> 9 10 #include <zephyr/kernel.h> 11 #include <zephyr/posix/pthread.h> 12 call_once(once_flag * flag,void (* func)(void))13void call_once(once_flag *flag, void (*func)(void)) 14 { 15 (void)pthread_once((pthread_once_t *)flag, func); 16 } 17