| 257 | //---------------------------------------------------------------------------- |
| 258 | |
| 259 | void ProcessList::advanceObjects() |
| 260 | { |
| 261 | PROFILE_START(ProcessList_AdvanceObjects); |
| 262 | |
| 263 | // A little link list shuffling is done here to avoid problems |
| 264 | // with objects being deleted from within the process method. |
| 265 | ProcessObject list; |
| 266 | list.plLinkBefore(mHead.mProcessLink.next); |
| 267 | mHead.plUnlink(); |
| 268 | for (ProcessObject * pobj = list.mProcessLink.next; pobj != &list; pobj = list.mProcessLink.next) |
| 269 | { |
| 270 | pobj->plUnlink(); |
| 271 | pobj->plLinkBefore(&mHead); |
| 272 | |
| 273 | onTickObject(pobj); |
| 274 | } |
| 275 | |
| 276 | mTotalTicks++; |
| 277 | |
| 278 | PROFILE_END(); |
| 279 | } |
| 280 | |
| 281 | ProcessObject* ProcessList::findNearestToEnd(Vector<ProcessObject*>& objs) const |
| 282 | { |
nothing calls this directly
no test coverage detected