Dynamic vs static sorting
System dynamics program with additional features for economics
Brought to you by:
hpcoder,
profstevekeen
Ravel file.
See https://sourceforge.net/p/minsky/ravel/155/
This feature is implemented, but appears to have exposed a serious bug in the system. When scrolling through an axis via arrow keys with dynamic sorting enabled, minsky will crash after a while. Examining the entrails in a debugger indicates multiple addon threads running, which just simply should not be. It appears that electron is now running an event processing model that fires off another thread for each event, so that mean I will need to add a mutex lock on each call the the backend (which is really what the Javascript virtual machine should be doing). Hope this extra lock doesn't slow things down too much.
I'll give a little more thought on this, as I wanted to work out a way of adding a thread termination signal to certain long running commands, so maybe we need to fix that first, before just adding the global mutex (sort of equivalent to Python's GIL).