octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52804] "Interruptible" and "BusyAction" prope


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #52804] "Interruptible" and "BusyAction" properties
Date: Thu, 18 Jan 2018 06:00:23 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

Follow-up Comment #7, bug #52804 (project octave):

>> The question now is does "Interruptible" and "BusyAction" work for the
XXXFcn correctly

I guess that the answer is no: I don't know that Octave's interpreter can be
interrupted in the middle of the evaluation of a program (except for
debugging). To my knowledge, there is no such thing as a signal saying the
interpreter it should interrupt its operations and evaluate something else
before proceeding (it would be useful though, so that one can "pause" a
lengthy operation and resume it later). 
The following shows that callbacks are always queued and eventually executed
when drawnow is called. 


plot (1:10)
hui = uicontrol ("style", "pushbutton", "callback", "disp ('button')")
tic ()
while (1)
  if (toc > 5)
    tic ()
    disp ("processing queued callbacks")
    drawnow ()
  endif
endwhile


Try to click multiple times on the button and you'll see that the messages
appear all at once, when drawnow is called in the main program.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52804>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]