Download Source Code

CStackTrace Class Reference

Contains stack traces for multiple threads. More...

#include <stacktrace.h>

Collaboration diagram for CStackTrace:

Collaboration graph
[legend]
List of all members.

Public Types

typedef THList< DWORD, CStacklist
 List type.
typedef THList< DWORD, CStack
>::iterator 
iterator
 Iterator type.

Public Member Functions

CStackGetStack ()
 Returns stack object for current thread.
CStackInitPush ()
 Initializes stack for calling thread if needed and returns pointer.
listGetList ()
 Returns a pointer to the stack list.
 CStackTrace ()
 Constructor.
virtual ~CStackTrace ()
 Destructor.
 operator CTlLock * ()
 Return the lock object.
BOOL Save (LPCTSTR pFile)
 Save stack to file.

Static Public Member Functions

static CStackTraceSt ()
 Returns instance of stack trace object.
static void Release ()
 Releases stack trace object.

Static Public Attributes

static CStackTracem_pst = NULL
 Instance of stack trace.
static BOOL m_bShutdown = FALSE
 Release all.

Classes

class  CStack
 Encapsulates stack tracing functionality for a single thread. More...

Detailed Description

Contains stack traces for multiple threads.

This class handles recording stack traceing. Thread safe.


Member Function Documentation

CStack* CStackTrace::GetStack  )  [inline]
 

Returns stack object for current thread.

Returns:
Pointer to the stack object for the calling thread
See also:

CStack* CStackTrace::InitPush  )  [inline]
 

Initializes stack for calling thread if needed and returns pointer.

Returns:
Pointer to the stack object for the calling thread
See also:

BOOL CStackTrace::Save LPCTSTR  pFile  ) 
 

Save stack to file.

Parameters:
[in] pFile - Disk filename
Returns:
Non-zero if success
See also:


The documentation for this class was generated from the following files:
  • inc/stacktrace.h
  • StackTrace.cpp
Copyright Robert Umbehant
This documentation is covered by the LGPL