ΒΆvoid llvm_execute_on_thread(
void (*)(void*) UserFn,
void* UserData,
llvm::Optional<unsigned int>
StackSizeInBytes = llvm::None)
void llvm_execute_on_thread(
void (*)(void*) UserFn,
void* UserData,
llvm::Optional<unsigned int>
StackSizeInBytes = llvm::None)
Description
Execute the given \p UserFn on a separate thread, passing it the provided \p UserData and waits for thread completion. This function does not guarantee that the code will actually be executed on a separate thread or honoring the requested stack size, but tries to do so where system support is available.
Declared at: llvm/include/llvm/Support/Threading.h:67
Parameters
- void (*)(void*) UserFn
- - The callback to execute.
- void* UserData
- - An argument to pass to the callback function.
- llvm::Optional<unsigned int> StackSizeInBytes = llvm::None
- - A requested size (in bytes) for the thread stack (or None for default)