12 #ifndef _SipXHandleMap_h_ 13 #define _SipXHandleMap_h_ 17 #include "os/OsMutex.h" 18 #include "utl/UtlHashMap.h" 132 #endif // _SipXHandleMap_h_ SIPXHANDLE mNextHandle
Next available handle index.
Definition: SipXHandleMap.h:112
void addHandleRef(SIPXHANDLE handle)
Adds a reference count to the handle lock.
Definition: SipXHandleMap.cpp:51
void dumpCalls()
Definition: SipXHandleMap.cpp:195
SIPXHANDLE allocHandle(const void *pData)
Allocate a unique handle and associate the designed pData value with that handle. ...
Definition: SipXHandleMap.cpp:102
virtual ~SipXHandleMap()
Destructor.
Definition: SipXHandleMap.cpp:45
UtlHashMap mLockCountHash
Definition: SipXHandleMap.h:117
OsMutex mLock
Locked used for addEntry and removeEntry.
Definition: SipXHandleMap.h:111
void dump()
Definition: SipXHandleMap.cpp:179
void lock()
Lock/guard access to the allocHandle, findHandle, and removeHandle routines.
Definition: SipXHandleMap.cpp:90
const void * removeHandle(SIPXHANDLE handle)
Remove the handle and data assoicated with it from the map.
Definition: SipXHandleMap.cpp:135
void unlock()
Unlock access to the allocHandle, findHandle, and removeHandle routines.
Definition: SipXHandleMap.cpp:96
SipXHandleMap provides a very simple container that associates a void* with a handle value...
Definition: SipXHandleMap.h:41
unsigned int SIPXHANDLE
Definition: SipXHandleMap.h:28
void releaseHandleRef(SIPXHANDLE handle)
Decrements reference count for handle locking.
Definition: SipXHandleMap.cpp:71
SipXHandleMap(int startingHandle=1)
Default constructor.
Definition: SipXHandleMap.cpp:38
const void * findHandle(SIPXHANDLE handle)
Find the data associated with the designated handle and return it.
Definition: SipXHandleMap.cpp:115