Threads, gtk, pthreads, and gthreads
- From: Gonzalo Aguilar <GAguilarDelgado terra es>
- To: gtk-app-devel-list gnome org
- Subject: Threads, gtk, pthreads, and gthreads
- Date: Mon, 03 Dec 2001 23:47:15 +0100
Hello all!!!
I'm writing a gnutella client with gtk (c, of course) and I want to
implement a
thread safe backend.
I'm programming with gcc3 and pthreads but I ran into some problems.
Gtk doesn't repaint when threads tries to update the GUI. One thread is
updating
labels or any other control each time (implemented by mutexes). But even
with only
one thread (and parent, main gtk process) it seems to hang.
And the question is:
Can threads use the interface?
Should I use gthreads to allow threads to access the interface or can I
use pthreads?
If I cannot use threads for updates on the GUI, how can I do it? May be
a timer?
Should I have any considerations on using threads in a gtk program?
Thanks for your help... You know that ANY help would be appreciated.
Bye.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]