18 #include "os/OsSysLog.h" 22 #define WIN32_LEAN_AND_MEAN 28 #include "os/OsDefs.h" 30 #define osPrintf printf 36 #define interface __interface 48 #include "os/OsDefs.h" 51 #define interface struct 55 #define WAIT_FOREVER VX_WAIT_FOREVER 68 #ifdef __pingtel_on_posix__ 69 #include <os/OsBSem.h> 70 typedef OsBSem * CRITICAL_SECTION;
71 #define interface struct 76 typedef SEM_ID CRITICAL_SECTION;
276 #ifdef RTCP_DEBUG_REFCOUNTS 277 const char* m_DerivedType;
368 #define DECLARE_IBASE_M \ 369 unsigned long AddRef ADD_RELEASE_PROTO_ARGS((int callLineNum)) \ 371 if (callLineNum > 0) OsSysLog::add(FAC_MP, PRI_DEBUG, __FILE__ " %p->AddRef(%d), count: %d", this, callLineNum, m_ulReferences); \ 372 return CBaseClass::AddRef(ADD_RELEASE_CALL_ARGS(callLineNum)); \ 374 unsigned long Release ADD_RELEASE_PROTO_ARGS((int callLineNum)) \ 377 if((ulRefCount = CBaseClass::Release(ADD_RELEASE_CALL_ARGS(callLineNum))) == 0) \ 379 if (CBaseClass::AllowDeletes()) { \ 382 if (callLineNum > 0) OsSysLog::add(FAC_MP, PRI_DEBUG, __FILE__ " %p->Release(%d) [would delete this]", this, callLineNum); \ 385 if (callLineNum > 0) OsSysLog::add(FAC_MP, PRI_DEBUG, __FILE__ " %p->Release(%d), count: %d", this, callLineNum, ulRefCount); \ 386 return(ulRefCount); \ void * SEM_ID
Definition: MpTypes.h:41
void setAutomatic(bool)
Definition: BaseClass.h:339
static bool s_bAllowDeletes
Definition: BaseClass.h:281
int m_ulReferences
Definition: BaseClass.h:274
virtual unsigned long AddRef ADD_RELEASE_PROTO_ARGS((int callLineNum))
#define callLineNum
Definition: RtcpConfig.h:78
virtual ~CBaseClass(void)
Definition: BaseClass.cpp:85
void EnterCriticalSection(CRITICAL_SECTION *csSynchronized)
void DeleteCriticalSection(CRITICAL_SECTION *csSynchronized)
void LeaveCriticalSection(CRITICAL_SECTION *csSynchronized)
CBaseClass CBASECLASS_PROTO_ARGS((const char *pDerivedType="Unknown", int callLineNum=0))
static void s_SetAllowDeletes(int v)
Definition: BaseClass.cpp:27
bool m_bInitialized
Definition: BaseClass.h:260
bool m_bAutomatic
Definition: BaseClass.h:262
bool IsInitialized(void)
Definition: BaseClass.h:332
Definition: BaseClass.h:118
void InitializeCriticalSection(CRITICAL_SECTION *csSynchronized)
static bool AllowDeletes(void)
Definition: BaseClass.h:344
virtual bool Initialize(void)
Definition: BaseClass.h:303
#define TRUE
Definition: PlgDefsV1.h:41