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: Jacob Dawid
Subject: Re: Race condition seems to be fixed
Date: Tue, 22 May 2012 17:37:11 +0200

Okay, now I solved it by only caching the symbol table from the readline hook, but updating it from the GUI thread. I have pushed my changes to gui, changes on default weren't necessary.

2012/5/22 Jacob Dawid <address@hidden>
Yes, but there it did not happen there because the model wasn't updated that often. I somehow need a possibility to not accept updates as long as the GUI is still reading the model. When I held Enter, so that octave send lots of update request short after another it crashed, too.

After an update, the model emits a signal that it is not valid anymore. The view listens to that and triggers an update, reading from the model. During this time, another update request is coming in invalidating the model again, but the GUI did not finish reading it.

But this is not linked to the use of readline event hook, isn't it? I mean, this crash could also happen with the other mechanism you proposed?

Michael.




reply via email to

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