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 |
|
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
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Mon May 06 05:36:24 CEST 2024
Total time taken to generate the page: 0.04272 seconds
|