Lines Matching refs:ptr
136 MtMsgBuf* ptr = NULL; in ~MsgBufMap() local
138 TAILQ_FOREACH_SAFE(ptr, &_msg_queue, _entry, tmp) in ~MsgBufMap()
140 TAILQ_REMOVE(&_msg_queue, ptr, _entry); in ~MsgBufMap()
141 delete ptr; in ~MsgBufMap() local
149 MtMsgBuf* ptr = NULL; in GetMsgBuf() local
151 ptr = TAILQ_FIRST(&_msg_queue); in GetMsgBuf()
152 TAILQ_REMOVE(&_msg_queue, ptr, _entry); in GetMsgBuf()
155 ptr = new MtMsgBuf(_max_buf_size); in GetMsgBuf()
158 return ptr; in GetMsgBuf()
161 void FreeMsgBuf(MtMsgBuf* ptr){ in FreeMsgBuf() argument
163 delete ptr; in FreeMsgBuf() local
165 ptr->Reset(); in FreeMsgBuf()
166 TAILQ_INSERT_TAIL(&_msg_queue, ptr, _entry); in FreeMsgBuf()