Re: Gtk+ and multithreating



On Mon, 2007-05-14 at 19:53 +0200, Michelle Konzack wrote:
So, can anyone provide me with a Tutorial HOW TO MULTITHREAD those
functions <some_code_to_update_the_dialog> ?

And maybe some other tips...

Can you do everything asynchronously?  Initiate your connections, and
set up some GIOChannels to watch for data availability?  That will let
you set up callbacks so the GLib main loop will notify your program as
bits of data are available from each server.  You don't block on
communication, your GUI stays responsive, and you don't have to worry
about the complexities of multithreading.

- Michael

-- 
Michael Ekstrand
Research Assistant, Scalable Computing Laboratory
Goanna, compute cluster and InfiniBand network monitor tool:
        http://www.scl.ameslab.gov/Projects/Monitor/




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