Execute the provided callback on another thread with an optional stack size, equivalent to RunSafelyOnThread.
Synopsis
Declared in <llvm/Support/CrashRecoveryContext.h>
bool
RunSafelyOnNewStack(
function_ref<void()> Fn,
unsigned int RequestedStackSize = 0);
Return Value
True if the function completed successfully, and false if the function crashed.
Parameters
Name |
Description |
Fn |
Callback to run under crash recovery on another thread. |
RequestedStackSize |
Preferred stack size for the new thread, or zero to use the default. |
Created with MrDocs