MCPcopy Create free account
hub / github.com/9miao/CrossApp / pauseTarget

Method pauseTarget

CrossApp/basics/CAScheduler.cpp:587–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587void 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
609bool CAScheduler::isTargetPaused(CAObject *pTarget)
610{

Callers 5

~CAViewMethod · 0.80
CAHttpClientMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected