| Return Type | Function name | Arguments |
|---|---|---|
| void | hzUrl::Clear | (void) |
Declared in file: hzUrl.h
Defined in file : hzUrl.cpp
Function Logic:
Function body:
void hzUrl::Clear (void)
{
_url_space* thisCtl ;
if (m_addr)
{
thisCtl = (_url_space*) g_ssrInet.Xlate(m_addr) ;
if (_hzGlobal_MT)
{
__sync_add_and_fetch(&(thisCtl->m_copy), -1);
if (!thisCtl->m_copy)
g_ssrInet.Free(m_addr, thisCtl->m_lenRes + thisCtl->m_lenProt + thisCtl->m_lenDom + thisCtl->m_lenPort + URL_FACTOR) ;
}
else
{
thisCtl->m_copy-- ;
if (!thisCtl->m_copy)
g_ssrInet.Free(m_addr, thisCtl->m_lenRes + thisCtl->m_lenProt + thisCtl->m_lenDom + thisCtl->m_lenPort + URL_FACTOR) ;
}
m_addr = 0;
}
}