cocos2d/cocos2d-x — pull request #5732 by gelldur (2014-03-12 12:46:59+00:00)
Title: Fixing bug when scheduler was blocked and we want remove and add again s...

...cheduled method

Example

We scheduled teget for example method update

void MyObject::update(float dt)
{
//Here CCScheduler::m_bUpdateHashLocked is set to true
//Also here scheduler for LeafAnimator::getInstance() is
paused!

CCDirector::sharedDirector()->getScheduler()->unscheduleUpdateForTarget(&LeafAnimator::getInstance()
);

CCDirector::sharedDirector()->getScheduler()->scheduleUpdateForTarget
(&LeafAnimator::getInstance(), INT_MAX, false );
//So when we want reschedule paused field isn't updated. Priority also
but this is in todo :)
}