Re: Question about Threads y gtk+
- From: Douwe Vos <dmvos2000 yahoo com>
- To: ammoises yahoo com mx, gtk-list gnome org
- Subject: Re: Question about Threads y gtk+
- Date: Fri, 3 Oct 2008 05:52:48 -0700 (PDT)
In general most threads are in waiting mode during large parts of their life time. If the main thread than wants to end that thread it sets a flag and notifies the thread to wake up. The thread than wakes up and should check this flag. As I understand your question you would like to more or less shoot the the thread, which I think is bad practice and also I don't know how to do so with GTK.
Regards,
Douwe
----- Original Message ----
From: Moises <ammoises yahoo com mx>
To: gtk-list gnome org
Sent: Friday, October 3, 2008 1:56:17 AM
Subject: Question about Threads y gtk+
Question about Threads y gtk+
To end a thread, you have to leave the function of the thread with an exit, return or calling g_thread_exit.
My question is how can I finish the thread from my main thread?
I try to use g_object_unref, for finish the thread but get me error.
¡Todo sobre Amor y Sexo!
La guía completa para tu vida en Mujer de Hoy.
http://mx.mujer.yahoo.com/
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]