|
LLVM
10.0.0
|
#include "llvm/Support/CrashRecoveryContext.h"#include "llvm/Config/llvm-config.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/ManagedStatic.h"#include "llvm/Support/Signals.h"#include "llvm/Support/ThreadLocal.h"#include <mutex>#include <setjmp.h>#include <sysexits.h>#include <signal.h>Go to the source code of this file.
Functions | |
| static void | installExceptionOrSignalHandlers () |
| static void | uninstallExceptionOrSignalHandlers () |
| static void | CrashRecoverySignalHandler (int Signal) |
| static void | setThreadBackgroundPriority () |
| static bool | hasThreadBackgroundPriority () |
| static void | RunSafelyOnThread_Dispatch (void *UserData) |
Variables | |
| static ManagedStatic< std::mutex > | gCrashRecoveryContextMutex |
| static bool | gCrashRecoveryEnabled = false |
| static ManagedStatic< sys::ThreadLocal< const CrashRecoveryContext > > | tlIsRecoveringFromCrash |
| static const int | Signals [] |
| static const unsigned | NumSignals = array_lengthof(Signals) |
| static struct sigaction | PrevActions [NumSignals] |
|
static |
Definition at line 345 of file CrashRecoveryContext.cpp.
References llvm::CrashRecoveryContext::Disable().
Referenced by installExceptionOrSignalHandlers().
|
static |
Definition at line 446 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::RunSafelyOnThread().
|
static |
Definition at line 385 of file CrashRecoveryContext.cpp.
References CrashRecoverySignalHandler(), NumSignals, and PrevActions.
Referenced by llvm::CrashRecoveryContext::Enable(), and llvm::CrashRecoveryContext::unregisterCleanup().
|
static |
Definition at line 463 of file CrashRecoveryContext.cpp.
References Info, and setThreadBackgroundPriority().
Referenced by llvm::CrashRecoveryContext::RunSafelyOnThread().
|
static |
Definition at line 440 of file CrashRecoveryContext.cpp.
Referenced by RunSafelyOnThread_Dispatch().
|
static |
Definition at line 397 of file CrashRecoveryContext.cpp.
References NumSignals, and PrevActions.
Referenced by llvm::CrashRecoveryContext::Disable(), and llvm::CrashRecoveryContext::unregisterCleanup().
|
static |
Definition at line 89 of file CrashRecoveryContext.cpp.
Definition at line 90 of file CrashRecoveryContext.cpp.
Definition at line 342 of file CrashRecoveryContext.cpp.
Referenced by installExceptionOrSignalHandlers(), and uninstallExceptionOrSignalHandlers().
|
static |
Definition at line 343 of file CrashRecoveryContext.cpp.
Referenced by installExceptionOrSignalHandlers(), and uninstallExceptionOrSignalHandlers().
|
static |
Definition at line 340 of file CrashRecoveryContext.cpp.
|
static |
Definition at line 93 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::isRecoveringFromCrash(), and llvm::CrashRecoveryContext::~CrashRecoveryContext().
1.8.13