axmol/cocos/base
j-jorge 67d16bee98 Prevent unexpected calls to unscheduled selector in long updates. (#17431)
If the delta time dt passed to cocos2d::Timer::update(float) is longer than the
interval of the timer, then the timer will be triggered several times even if
the selector is unscheduled during the call.

This commit adds a flag in cocos2d::Timer stop the update loop if the selector
has been unscheduled.
2017-03-07 11:16:30 +08:00
..
allocator Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCAsyncTaskPool.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCAsyncTaskPool.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCAutoreleasePool.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCAutoreleasePool.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCConfiguration.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCConfiguration.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCConsole.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCConsole.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCController-android.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCController-apple.mm Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCController.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCController.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCData.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCData.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCDataVisitor.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCDataVisitor.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCDirector.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCDirector.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEvent.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEvent.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventAcceleration.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventAcceleration.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventController.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventController.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventCustom.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventCustom.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventDispatcher.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventDispatcher.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventFocus.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventFocus.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventKeyboard.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventKeyboard.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListener.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListener.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerAcceleration.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerAcceleration.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerController.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerController.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerCustom.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerCustom.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerFocus.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerFocus.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerKeyboard.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerKeyboard.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerMouse.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerMouse.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerTouch.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventListenerTouch.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventMouse.cpp 17357: Better encapsulate the definition of mouse buttons (#17358) 2017-03-02 13:39:33 +08:00
CCEventMouse.h 17357: Better encapsulate the definition of mouse buttons (#17358) 2017-03-02 13:39:33 +08:00
CCEventTouch.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventTouch.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCEventType.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCGameController.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCIMEDelegate.h Updates license year. (#17363) 2017-02-14 14:59:12 +08:00
CCIMEDispatcher.cpp Updates license year. (#17363) 2017-02-14 14:59:12 +08:00
CCIMEDispatcher.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCMap.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCNS.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCNS.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCNinePatchImageParser.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCNinePatchImageParser.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCProfiling.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCProfiling.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCProperties.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCProperties.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCProtocols.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCRef.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCRef.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCRefPtr.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCScheduler.cpp Prevent unexpected calls to unscheduled selector in long updates. (#17431) 2017-03-07 11:16:30 +08:00
CCScheduler.h Prevent unexpected calls to unscheduled selector in long updates. (#17431) 2017-03-07 11:16:30 +08:00
CCScriptSupport.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCScriptSupport.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCStencilStateManager.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCStencilStateManager.hpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCTouch.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCTouch.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCUserDefault-android.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCUserDefault-apple.mm Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCUserDefault-winrt.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCUserDefault.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCUserDefault.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCValue.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCValue.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CCVector.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
CMakeLists.txt Squashed commit of the following: 2016-03-02 16:51:54 -08:00
ObjectFactory.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ObjectFactory.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
TGAlib.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
TGAlib.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ZipUtils.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ZipUtils.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
atitc.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
atitc.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
base64.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
base64.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccCArray.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccCArray.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccConfig.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccFPSImages.c Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccFPSImages.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccMacros.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccRandom.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccRandom.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccTypes.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccTypes.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccUTF8.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccUTF8.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccUtils.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
ccUtils.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
etc1.cpp Squashed commit of the following: 2014-04-30 19:09:13 -07:00
etc1.h [ci skip]Update comments 2015-03-24 20:23:51 +08:00
firePngData.h [ci skip]Update comments 2015-03-24 20:23:51 +08:00
pvr.cpp Fixes 1605 include path in 541 files 2016-03-20 21:53:44 +08:00
pvr.h Copyright & small fixes 2014-07-22 15:49:38 +04:00
s3tc.cpp Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
s3tc.h Update license to 2017 (#17362) 2017-02-14 14:36:57 +08:00
uthash.h [ci skip]Update comments 2015-03-24 20:23:51 +08:00
utlist.h [ci skip]Update comments 2015-03-24 20:23:51 +08:00