|
From: | John W. Eaton |
Subject: | [Octave-bug-tracker] [bug #44406] glps_renderer::draw uses static state variable, potential bug? |
Date: | Mon, 02 Mar 2015 18:36:47 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0 |
Follow-up Comment #4, bug #44406 (project octave): Also... In Octave code, interrupts only set a global variable which is checked periodically. It's only at the point of checking the global interrupt state variable that the interrupt actually happens. So unless the code that is protected with the static variable calls something that checks the global variable and throws an interrupt exception (usually with the OCTAVE_QUIT macro) then there is no need to use unwind_protect. But you should only skip the unwind_protect if you are certain that there can be no calls to OCTAVE_QUIT where the value of the static (or global) varaiable is set/reset. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?44406> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |