1 //===-- Types related to the callonce function ----------------------------===//
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 namespace __llvm_libc
{
12 using CallOnceCallback
= void(void);
14 int callonce(CallOnceFlag
*flag
, CallOnceCallback
*callback
);
16 } // namespace __llvm_libc