| 75 | } |
| 76 | |
| 77 | void ProcessObject::plLinkBefore(ProcessObject * obj) |
| 78 | { |
| 79 | AssertFatal(mProcessLink.next == this && mProcessLink.prev == this,"ProcessObject::plLinkBefore: must be unlinked before calling this"); |
| 80 | #ifdef TORQUE_DEBUG |
| 81 | ProcessObject * test1 = obj; |
| 82 | ProcessObject * test2 = obj->mProcessLink.next; |
| 83 | ProcessObject * test3 = obj->mProcessLink.prev; |
| 84 | ProcessObject * test4 = this; |
| 85 | #endif |
| 86 | |
| 87 | // Link this before obj |
| 88 | mProcessLink.next = obj; |
| 89 | mProcessLink.prev = obj->mProcessLink.prev; |
| 90 | obj->mProcessLink.prev = this; |
| 91 | mProcessLink.prev->mProcessLink.next = this; |
| 92 | |
| 93 | #ifdef TORQUE_DEBUG |
| 94 | AssertFatal(test1->mProcessLink.next->mProcessLink.prev==test1 && test1->mProcessLink.prev->mProcessLink.next==test1,"Doh!"); |
| 95 | AssertFatal(test2->mProcessLink.next->mProcessLink.prev==test2 && test2->mProcessLink.prev->mProcessLink.next==test2,"Doh!"); |
| 96 | AssertFatal(test3->mProcessLink.next->mProcessLink.prev==test3 && test3->mProcessLink.prev->mProcessLink.next==test3,"Doh!"); |
| 97 | AssertFatal(test4->mProcessLink.next->mProcessLink.prev==test4 && test4->mProcessLink.prev->mProcessLink.next==test4,"Doh!"); |
| 98 | #endif |
| 99 | } |
| 100 | |
| 101 | void ProcessObject::plJoin(ProcessObject * head) |
| 102 | { |
no outgoing calls
no test coverage detected