Re: How to oblige Gtk to redraw the window



>In fact, i'm using fork and not threads. My progress
>bar indicates the percentage done while reading the
>file. Is it better to use threads?

read the FAQ.

threads are more lightweight, plus you cannot use fork() this way
since you cannot use mutexes between processes; GTK (and X) requires
are not thread-safe without the mutexes being acquired and released.

--p





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