1 //===-- Definition of once_flag type --------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef __LLVM_LIBC_TYPES_ONCE_FLAG_H__
10 #define __LLVM_LIBC_TYPES_ONCE_FLAG_H__
12 #include <llvm-libc-types/__futex_word.h>
15 typedef __futex_word once_flag
;
17 #error "Once flag type not defined for the target platform."
20 #endif // __LLVM_LIBC_TYPES_ONCE_FLAG_H__