ΒΆtemplate <typename Function, typename... Args>
void call_once(llvm::once_flag& flag,
Function&& F,
Args&&... ArgList)
template <typename Function, typename... Args>
void call_once(llvm::once_flag& flag,
Function&& F,
Args&&... ArgList)
Description
Execute the function specified as a parameter once. Typical usage:
Declared at: llvm/include/llvm/Support/Threading.h:118
Templates
- Function
- Args
Parameters
- llvm::once_flag& flag
- Flag used for tracking whether or not this has run.
- Function&& F
- Function to call once.
- Args&&... ArgList