Creates a native thread running ThreadFunc(Arg) with optional stack size.
Synopsis
Declared in <llvm/Support/thread.h>
thread::native_handle_type
llvm_execute_on_thread_impl(
thread::start_routine_type ThreadFunc,
void* Arg,
std::optional<unsigned int> StackSizeInBytes);
Return Value
The native handle of the newly created thread.
Parameters
Name |
Description |
ThreadFunc |
Entry routine invoked on the new thread. |
Arg |
Argument passed to |
StackSizeInBytes |
Requested stack size in bytes, or nullopt for default. |
Created with MrDocs