On Tue, May 27, 2008 at 12:52:01PM +1000, Sam Saffron wrote: > But then I realised there is a huge issue with most mri based guis > frameworks for ruby, threading. My architecture for my logviewer is: pump > all of the log messages over drb to the logviewer, on the logviewer app > chuck the data into a sqlite db and then pull in the info required from the > db to display screens of data. So, I need a background thread to load the > data into my sqlite db, and I dont want it to interfere/clash with the ui > thread.
I'd recommend using a timer (like you'd do in JavaScript). Maybe cut up your queries so they don't block the UI long and use a timer to load sections at a time? I know wxWidgets itself has a timer. _why
