| 165 | } |
| 166 | |
| 167 | void *CRingBufferBase::Prev(void *pCurrent) |
| 168 | { |
| 169 | CItem *pItem = ((CItem *)pCurrent) - 1; |
| 170 | |
| 171 | while(true) |
| 172 | { |
| 173 | pItem = PrevBlock(pItem); |
| 174 | if(pItem == m_pProduce) |
| 175 | return nullptr; |
| 176 | if(!pItem->m_Free) |
| 177 | return pItem + 1; |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | void *CRingBufferBase::Next(void *pCurrent) |
| 182 | { |
no outgoing calls
no test coverage detected