1 /* 2 * Copyright (c) 2023, Meta 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_LIB_LIBC_COMMON_INCLUDE_MACHINE__THREADS_H_ 8 #define ZEPHYR_LIB_LIBC_COMMON_INCLUDE_MACHINE__THREADS_H_ 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 #define ONCE_FLAG_INIT {0} 15 16 typedef int cnd_t; 17 typedef int mtx_t; 18 typedef int thrd_t; 19 typedef int tss_t; 20 typedef struct { 21 char flag; 22 } once_flag; 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif /* ZEPHYR_LIB_LIBC_COMMON_INCLUDE_MACHINE__THREADS_H_ */ 29