|
From: | Michael Goffioul |
Subject: | Re: Race condition seems to be fixed |
Date: | Tue, 22 May 2012 12:46:09 +0100 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |