Re: [Dev-C++] Offtopic: Advice on GUI to learn
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel K. O. <dan...@ya...> - 2004-01-16 21:53:38
|
Michael C Urban wrote: >On Fri, 16 Jan 2004, Daniel K. O. wrote: > > >>Actually, you just can't update the GUI from other threads. >> >> >Yeah... That's what "not thread safe" means. > > I don't see it as a big problem. There aren't too much cases when you really NEED to update the gui outside the main thread. Say, if you're updating a progress bar for some task you're doing in a thread, eventually you'll get to 100%. Then, you usually want to do something else in your program. This is the moment you will need to synchronize with something else. If you're already doing the update inside the main thread, you'll probably won't need to lock other stufs. I couldn't find more than a few specific real-world examples that would need threads to update the main GUI (but still can be written the other way to work with GTK+ on Windows), and wouln't need to synchronize with the rest of the program. Would be interesting if somebody show us some of these examples - and then forward it to the GTK+ developers. Daniel K. O. |