Re: g_timeout_add_full from different thread not working
- From: Michael Cronenworth <mike cchtml com>
- To: gtk-app-devel-list gnome org
- Subject: Re: g_timeout_add_full from different thread not working
- Date: Mon, 22 Feb 2010 21:12:50 -0600
On 02/22/2010 08:55 PM, S Boucher wrote:
Calling g_timeout_add_full() from a different thread (note the pthread_create in the sample bellow) than
where gtk_main() is does not work as I expect.
The timeout function only gets called if I generate events by moving the mouse. If I don't move the mouse,
all I see is the timeout is added repeatedly, but timeout_func does not get called.
I'm afraid there's something I do not understand... and thus, your help would be appreciated.
I don't see a call to g_thread_init() in your example. You'll need that
call prior to calling gtk_init().
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]