|
|
|
|||||
|
Ice with GUI
I am using Ice with Gtk. I have my GUI running in its own thread; it reads a mutex protected queue on every idle event. When other threads want to update the GUI, they dump a function object on the thread (and so on, active object pattern). This works pretty well, but I'm wondering if I can use an Ice::Connection somehow to hook Ice into the Gtk main loop. This would make networked GUI clients a lot easier to write...
__________________
Mark E. Wilson Lead Programmer/Analyst Omega EP Project Laboratory for Laser Energetics (www.lle.rochester.edu) University of Rochester Rochester, NY 14623 |
|
|||||
|
Have you guys done any work with X Windows type GUI's?
__________________
Mark E. Wilson Lead Programmer/Analyst Omega EP Project Laboratory for Laser Energetics (www.lle.rochester.edu) University of Rochester Rochester, NY 14623 |
|
|||||
|
Yes. How did you handle the threading?
__________________
Mark E. Wilson Lead Programmer/Analyst Omega EP Project Laboratory for Laser Energetics (www.lle.rochester.edu) University of Rochester Rochester, NY 14623 |
|
||||||
|
We used the same pattern that you use, that is, have the dispatch threads that trigger GUI activity pass function objects to the main thread.
For long-running client->server invocations, we used a separate thread to send requests (so that the GUI does not block), and had the GUI main thread pass a function object to this thread. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|