|
Tom,
As I embark on the grand clean-up of my app, I'm tempted to dive fairly deep, and clean up the threading as well. A year or so back, we did get everything working nicely, but I no longer recall clearly *how* it all works, and I can't help but believe it's more complicated than it should be. So, I'd like to discuss how it *should* be done, to see if I can't simplify it a bit.
Any advice on what would be an appropriate threading model for such an app? I've got things that are user-driven (GUI inputs), timer-driven (GUI updates, blinking "LEDs", need to add one for doing MainStatus updates, etc.), KFlop communications, network access (comms with the toolpath display, which is a separate app), and probably a few things I don't even remember. I have the impression that when we first got all this working, we kinda threw in some gratuitous threads just to get things working, but I'd like to now clean it up, and make it more orderly.
A very vague question, I know, but I'm not sure where to start.... Any help or advice welcomed.
Regards,
Ray L.
|