Push data object into the to be processed queue. This is done by the object originator thread. Returns: None
| Return Type | Function name | Arguments |
|---|---|---|
| void | hzDiode::Push | (void*,) |
Declared in file: hzLock.h
Defined in file : hzProcess.cpp
Function Logic:
Function body:
void hzDiode::Push (void* pObj)
{
// Push data object into the to be processed queue. This is done by the object originator thread.
//
// Arguments: 1) pObj Object to be handled by the next stage thread
// Returns: None
_bkt* pB ; // Diode bucket pointer
if (!m_pLast)
pB = _alloc() ;
else
pB = m_pLast ;
if (pB->usage == 30)
{
pB = _alloc() ;
m_pLast->next = pB ;
m_pLast = pB ;
}
pB->items[pB->usage] = pObj ;
pB->usage++ ;
if (!m_pLast)
m_pFirst = m_pLast = pB ;
}