llvm::CrashRecoveryContext::RunSafelyOnNewStack

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

NameDescription
FnCallback to run under crash recovery on another thread.
RequestedStackSizePreferred stack size for the new thread, or zero to use the default.