| 585 | } |
| 586 | |
| 587 | void CAScheduler::pauseTarget(CAObject *pTarget) |
| 588 | { |
| 589 | CCAssert(pTarget != NULL, ""); |
| 590 | |
| 591 | // custom selectors |
| 592 | tHashTimerEntry *pElement = NULL; |
| 593 | HASH_FIND_INT(m_pHashForTimers, &pTarget, pElement); |
| 594 | if (pElement) |
| 595 | { |
| 596 | pElement->paused = true; |
| 597 | } |
| 598 | |
| 599 | // update selector |
| 600 | tHashUpdateEntry *pElementUpdate = NULL; |
| 601 | HASH_FIND_INT(m_pHashForUpdates, &pTarget, pElementUpdate); |
| 602 | if (pElementUpdate) |
| 603 | { |
| 604 | CCAssert(pElementUpdate->entry != NULL, ""); |
| 605 | pElementUpdate->entry->paused = true; |
| 606 | } |
| 607 | } |
| 608 | |
| 609 | bool CAScheduler::isTargetPaused(CAObject *pTarget) |
| 610 | { |
no outgoing calls
no test coverage detected