Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TErrorDefaultHandler.cxx File Reference
#include <TEnv.h>
#include <TError.h>
#include <ThreadLocalStorage.h>
#include <TSystem.h>
#include <Varargs.h>
#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <cstring>
#include <mutex>
Include dependency graph for TErrorDefaultHandler.cxx:

Namespaces

namespace  ROOT
 tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tbb::task_arena without forward declaring tbb::interface7
 
namespace  ROOT::Internal
 

Functions

static void DebugPrint (const char *fmt,...)
 Print debugging message to stderr and, on Windows, to the system debugger.
 
void DefaultErrorHandler (Int_t level, Bool_t abort_bool, const char *location, const char *msg)
 The default error handler function.
 
static std::mutex * GetErrorMutex ()
 Serializes error output, destructed by the gROOT destructor via ReleaseDefaultErrorHandler()
 
void ROOT::Internal::ReleaseDefaultErrorHandler ()
 Destructs resources that are taken by using the default error handler.
 

Detailed Description

Date
2020-06-14

Definition in file TErrorDefaultHandler.cxx.

Function Documentation

◆ DebugPrint()

static void DebugPrint ( const char *  fmt,
  ... 
)
static

Print debugging message to stderr and, on Windows, to the system debugger.

Definition at line 57 of file TErrorDefaultHandler.cxx.

◆ DefaultErrorHandler()

void DefaultErrorHandler ( Int_t  level,
Bool_t  abort_bool,
const char *  location,
const char *  msg 
)

The default error handler function.

It prints the message on stderr and if abort is set it aborts the application. Replaces the minimal error handler of TError.h as part of the gROOT construction. TError's minimal handler is put back in place during the gROOT destruction.

Definition at line 101 of file TErrorDefaultHandler.cxx.

◆ GetErrorMutex()

static std::mutex * GetErrorMutex ( )
static

Serializes error output, destructed by the gROOT destructor via ReleaseDefaultErrorHandler()

Definition at line 38 of file TErrorDefaultHandler.cxx.