LLVM  4.0.0
Functions | Variables
CrashRecoveryContext.cpp File Reference
#include "llvm/Support/CrashRecoveryContext.h"
#include "llvm/Config/config.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Mutex.h"
#include "llvm/Support/ThreadLocal.h"
#include <setjmp.h>
#include <signal.h>
Include dependency graph for CrashRecoveryContext.cpp:

Go to the source code of this file.

Functions

static void CrashRecoverySignalHandler (int Signal)
 
static void setThreadBackgroundPriority ()
 
static bool hasThreadBackgroundPriority ()
 
static void RunSafelyOnThread_Dispatch (void *UserData)
 

Variables

static ManagedStatic< sys::MutexgCrashRecoveryContextMutex
 
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]
 

Function Documentation

static void CrashRecoverySignalHandler ( int  Signal)
static
static bool hasThreadBackgroundPriority ( )
static
static void RunSafelyOnThread_Dispatch ( void *  UserData)
static
static void setThreadBackgroundPriority ( )
static

Definition at line 338 of file CrashRecoveryContext.cpp.

Referenced by RunSafelyOnThread_Dispatch().

Variable Documentation

ManagedStatic<sys::Mutex> gCrashRecoveryContextMutex
static
bool gCrashRecoveryEnabled = false
static
const unsigned NumSignals = array_lengthof(Signals)
static
struct sigaction PrevActions[NumSignals]
static
const int Signals[]
static
Initial value:
=
{ SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGSEGV, SIGTRAP }

Definition at line 244 of file CrashRecoveryContext.cpp.

Referenced by llvm::CrashRecoveryContext::Disable(), and llvm::CrashRecoveryContext::Enable().

ManagedStatic<sys::ThreadLocal<const CrashRecoveryContext> > tlIsRecoveringFromCrash
static