Public Member Functions | Static Public Attributes

mozilla::CallStack Class Reference

#include <DeadlockDetector.h>

Collaboration diagram for mozilla::CallStack:

List of all members.

Public Member Functions

 CallStack (const callstack_id aCallStack=0)
 CallStack *ALWAYS* *ALWAYS* *ALWAYS* call this with no arguments.
 CallStack (const CallStack &aFrom)
CallStackoperator= (const CallStack &aFrom)
bool operator== (const CallStack &aOther) const
bool operator!= (const CallStack &aOther) const
void Print (FILE *f) const

Static Public Attributes

static const CallStack kNone
 The "null" callstack.

Constructor & Destructor Documentation

mozilla::CallStack::CallStack ( const callstack_id  aCallStack = 0  )  [inline]

CallStack *ALWAYS* *ALWAYS* *ALWAYS* call this with no arguments.

This constructor takes an argument *ONLY* so that |GET_BACKTRACE()| can be evaluated in the stack frame of the caller, rather than that of the constructor.

*BEWARE*: this means that calling this constructor with no arguments is not the same as a "default, do-nothing" constructor: it *will* construct a backtrace. This can cause unexpected performance issues.

mozilla::CallStack::CallStack ( const CallStack aFrom  )  [inline]

Member Function Documentation

bool mozilla::CallStack::operator!= ( const CallStack aOther  )  const [inline]
CallStack& mozilla::CallStack::operator= ( const CallStack aFrom  )  [inline]
bool mozilla::CallStack::operator== ( const CallStack aOther  )  const [inline]
void mozilla::CallStack::Print ( FILE *  f  )  const [inline]

Member Data Documentation

The "null" callstack.


The documentation for this class was generated from the following file: