octave-maintainers
[Top][All Lists]
Advanced

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

Re: Race condition seems to be fixed


From: Michael Goffioul
Subject: Re: Race condition seems to be fixed
Date: Tue, 22 May 2012 12:22:49 +0100

On Tue, May 22, 2012 at 12:02 PM, John W. Eaton <address@hidden> wrote:
On 22-May-2012, Jacob Dawid wrote:

|
|     Oh, I see now that it also happens with something as simple as
|
|      function foobar () end
|      add_input_event_hook ("foobar");
|
|     so the problem is generic, and probably not the fault of the ftlk
|     callback taking too much time.
|
|     So Jacob, I think you should use the input_event_hook mechanism to
|     handle your callback.
|
|
| I just test how well that performs. What the name of that hook in C?

For now, create an Octave function with DEFUN and install it in the
same way that the DLD-FUNCTIONS/__init_fltk__.cc file uses (search for
add_input_event_hook in that file).

If needed, we can later change Octave so that the DEFUN is not needed.


 Or use command_editor::add_event_hook(). It's lighter than using the interpreter...

Michael.


reply via email to

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