Multithreaded Drawing



I am trying to work out how to set up my multithreaed drawing app of real-time data.  I was think that I could run to main loops.  One in the main gtkmm thread and a glib::mainloop in my worker thread.  The worker thread would have a timeout signal that fires 30 times a second and draws the new screen to a buffer.  Once drawing is done it would it would fire off a dispatcher signal to the main thread where it draws the buffer to the screen.  would this be the right way going about doing this and if so does anyone have a quick example on how to accomplish this since I am more book smart then practical
 
Talguy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]