LibreOffice Module comphelper (master) 1
|
A generic class for detecting if a given crash or a lock-up came from a specific area of code (such as OpenGL). More...
#include <crashzone.hxx>
Public Member Functions | |
CrashZone () | |
~CrashZone () | |
Static Public Member Functions | |
static bool | isInZone () |
static const AtomicCounter & | enterCount () |
static void | enter () |
static void | leave () |
Private Types | |
using | AtomicCounter = std::atomic< std::make_unsigned_t< std::sig_atomic_t > > |
Static Private Attributes | |
static AtomicCounter | gnEnterCount = 0 |
how many times have we entered a zone More... | |
static AtomicCounter | gnLeaveCount = 0 |
how many times have we left a new zone More... | |
A generic class for detecting if a given crash or a lock-up came from a specific area of code (such as OpenGL).
Use this helper to track that. The class is a template so that there can be multiple instances of static variables.
Definition at line 32 of file crashzone.hxx.
|
private |
Definition at line 42 of file crashzone.hxx.
|
inline |
Definition at line 54 of file crashzone.hxx.
References CrashZone< Dummy >::enter().
Definition at line 55 of file crashzone.hxx.
References CrashZone< Dummy >::leave().
|
inlinestatic |
Definition at line 59 of file crashzone.hxx.
References CrashZone< Dummy >::gnEnterCount.
Referenced by CrashZone< Dummy >::CrashZone().
|
inlinestatic |
Definition at line 57 of file crashzone.hxx.
References CrashZone< Dummy >::gnEnterCount.
|
inlinestatic |
Definition at line 56 of file crashzone.hxx.
References CrashZone< Dummy >::gnEnterCount, and CrashZone< Dummy >::gnLeaveCount.
|
inlinestatic |
Definition at line 60 of file crashzone.hxx.
References CrashZone< Dummy >::gnLeaveCount.
Referenced by CrashZone< Dummy >::~CrashZone().
|
inlinestaticprivate |
how many times have we entered a zone
Definition at line 49 of file crashzone.hxx.
Referenced by CrashZone< Dummy >::enter(), CrashZone< Dummy >::enterCount(), and CrashZone< Dummy >::isInZone().
|
inlinestaticprivate |
how many times have we left a new zone
Definition at line 51 of file crashzone.hxx.
Referenced by CrashZone< Dummy >::isInZone(), and CrashZone< Dummy >::leave().