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 13:35:16 +0200

Still crashes. The problem with that hook is that it is non-blocking, so I cannot be sure that the symbol_table is valid during the time I update the GUI model. So this doesn't help the race condition issue.

2012/5/22 Jacob Dawid <address@hidden>
After debugging, apparently, the readline hook is being called multiple times even when the previous run is not finished. Probably adding a semaphore will help that.


2012/5/22 Jacob Dawid <address@hidden>
Or use command_editor::add_event_hook(). It's lighter than using the interpreter...

Michael.


Okay, I did that. Adding a hook works as long as the symbol table is small. When adding 1000 symbols it crashes the GUI randomly.



reply via email to

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