src/Catena_PollableInterface.h
// register an object to be polled in this list.
register an object to be polled in this list.
register an object to be polled in this list .
void registerObject(cPollableObject *pObject)
                {
                auto const pHead = this->m_pHead;
                if (pHead == nullptr)
                        {
                        pObject->m_pNext = pObject;
                        pObject->m_pLast = pObject;
                        this->m_pHead = pObject;
                        }
                else
                        {
                        auto const pLast = pHead->m_pLast;
                        pObject->m_pNext = pHead;
                        pObject->m_pLast = pLast;
                        pLast->m_pNext = pObject;
                        pHead->m_pLast = pObject;
                        }
                }
void registerObject ( cPollableObject * pObject ) { auto const pHead = this -> m_pHead ; if ( pHead == nullptr ) { pObject -> m_pNext = pObject ; pObject -> m_pLast = pObject ; this -> m_pHead = pObject ; } else { auto const pLast = pHead -> m_pLast ; pObject -> m_pNext = pHead ; pObject -> m_pLast = pLast ; pLast -> m_pNext = pObject ; pHead -> m_pLast = pObject ; } }
register an object to be polled in this list.
register an object to be polled in this list .