Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
/* |
|
* Copyright (c) 2023, Meta |
|
* |
|
* SPDX-License-Identifier: Apache-2.0 |
|
*/ |
|
|
|
#include <errno.h> |
|
#include <threads.h> |
|
|
|
#include <zephyr/kernel.h> |
|
#include <zephyr/posix/pthread.h> |
|
|
|
void call_once(once_flag *flag, void (*func)(void)) |
|
{ |
|
(void)pthread_once((pthread_once_t *)flag, func); |
|
}
|
|
|