Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Callbacks and Timers » Callbacks with 'Disable' feature
Re: Callbacks with 'Disable' feature [message #29221 is a reply to message #29220] Mon, 11 October 2010 19:34 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi kohait,

The only comment I can give you is that I actually never needed such thing. I think there are two possible cases: 1) You need to disable some specific callbacks, or 2) you need to disable callback on a specific place of your code. Both are very easily solvable even without Callback::Disable(). For 1) it is just adding "if(DoNotExecuteNow) return;" on the beginning of the callback functions you might need to disable. For the second case, it would be similar, but the if would be outside of the call, something like "if(!DoNotExecuteNow) WhenSomething();".

IMHO there is not much need for changes. Actually I never even used the Clear() method Smile

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to use timer id? and how to kill a timer
Next Topic: FIX: Callback / Tuple
Goto Forum:
  


Current Time: Mon May 06 05:36:24 CEST 2024

Total time taken to generate the page: 0.04272 seconds