12 #ifndef _SipXHandleMap_h_ 13 #define _SipXHandleMap_h_ 17 #include "os/OsMutex.h" 18 #include "utl/UtlHashMap.h" 117 UtlHashMap mLockCountHash;
132 #endif // _SipXHandleMap_h_ const void * findHandle(SIPXHANDLE handle)
Find the data associated with the designated handle and return it.
SIPXHANDLE mNextHandle
Next available handle index.
Definition: SipXHandleMap.h:112
const void * removeHandle(SIPXHANDLE handle)
Remove the handle and data assoicated with it from the map.
void addHandleRef(SIPXHANDLE handle)
Adds a reference count to the handle lock.
SIPXHANDLE allocHandle(const void *pData)
Allocate a unique handle and associate the designed pData value with that handle. ...
OsMutex mLock
Locked used for addEntry and removeEntry.
Definition: SipXHandleMap.h:111
virtual ~SipXHandleMap()
Destructor.
void lock()
Lock/guard access to the allocHandle, findHandle, and removeHandle routines.
void unlock()
Unlock access to the allocHandle, findHandle, and removeHandle routines.
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
SipXHandleMap(int startingHandle=1)
Default constructor.