Execute the provided callback on another thread with an optional stack size, equivalent to RunSafelyOnThread.
Declared in <llvm/Support/CrashRecoveryContext.h>
bool
RunSafelyOnNewStack(
function_ref<void()> Fn,
unsigned int RequestedStackSize = 0);
True if the function completed successfully, and false if the function crashed.
| 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. |