| 416 | } |
| 417 | |
| 418 | inline bool IsValidOwner(OutRec* outrec, OutRec* testOwner) |
| 419 | { |
| 420 | // prevent outrec owning itself either directly or indirectly |
| 421 | while (testOwner && testOwner != outrec) testOwner = testOwner->owner; |
| 422 | return !testOwner; |
| 423 | } |
| 424 | |
| 425 | inline void UncoupleOutRec(Active ae) |
| 426 | { |