sipxmedialib  Version 3.3
Classes | Macros | Functions | Variables
BaseClass.h File Reference
#include "rtcp/RtcpConfig.h"
#include "os/OsSysLog.h"
Include dependency graph for BaseClass.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CBaseClass
 

Macros

#define DECLARE_IBASE_M
 

Functions

void InitializeCriticalSection (CRITICAL_SECTION *csSynchronized)
 
void EnterCriticalSection (CRITICAL_SECTION *csSynchronized)
 
void LeaveCriticalSection (CRITICAL_SECTION *csSynchronized)
 
void DeleteCriticalSection (CRITICAL_SECTION *csSynchronized)
 

Variables

bool bPingtelDebug
 

Macro Definition Documentation

#define DECLARE_IBASE_M
Value:
unsigned long AddRef ADD_RELEASE_PROTO_ARGS((int callLineNum)) \
{ \
if (callLineNum > 0) OsSysLog::add(FAC_MP, PRI_DEBUG, __FILE__ " %p->AddRef(%d), count: %d", this, callLineNum, m_ulReferences); \
return CBaseClass::AddRef(ADD_RELEASE_CALL_ARGS(callLineNum)); \
} \
unsigned long Release ADD_RELEASE_PROTO_ARGS((int callLineNum)) \
{ \
int ulRefCount; \
if((ulRefCount = CBaseClass::Release(ADD_RELEASE_CALL_ARGS(callLineNum))) == 0) \
{ \
delete this; \
} else { \
if (callLineNum > 0) OsSysLog::add(FAC_MP, PRI_DEBUG, __FILE__ " %p->Release(%d) [would delete this]", this, callLineNum); \
} \
} \
if (callLineNum > 0) OsSysLog::add(FAC_MP, PRI_DEBUG, __FILE__ " %p->Release(%d), count: %d", this, callLineNum, ulRefCount); \
return(ulRefCount); \
}
#define callLineNum
Definition: RtcpConfig.h:78
#define ADD_RELEASE_CALL_ARGS(x)
Definition: RtcpConfig.h:74
Definition: BaseClass.h:118
static bool AllowDeletes(void)
Definition: BaseClass.h:344
virtual unsigned long Release ADD_RELEASE_PROTO_ARGS((int line))=0

Macro Name: DECLARE_IBASE_M

Inputs: None

Outputs: None

Returns: None

Description: This implements the IBaseClass functions used and exposed by derived classes.

Usage Notes:

Function Documentation

void InitializeCriticalSection ( CRITICAL_SECTION *  csSynchronized)
void EnterCriticalSection ( CRITICAL_SECTION *  csSynchronized)
void LeaveCriticalSection ( CRITICAL_SECTION *  csSynchronized)
void DeleteCriticalSection ( CRITICAL_SECTION *  csSynchronized)

Variable Documentation

bool bPingtelDebug