[libc][NFC] Move aligned access implementations to separate header
[llvm-project.git] / libc / src / __support / threads / callonce.h
blob4ffff2a2c71a684629b076533bc9f75d134f35f4
1 //===-- Types related to the callonce function ----------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 namespace __llvm_libc {
11 struct CallOnceFlag;
12 using CallOnceCallback = void(void);
14 int callonce(CallOnceFlag *flag, CallOnceCallback *callback);
16 } // namespace __llvm_libc