Re: gtk2 multithreaded programming win32 issue

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

 



Hi,

2008/8/28 Kuang-Chun Cheng <kcc1967@xxxxxxxxx>:
> My GUI require update after some non-gui thread finish it's task.
>
> So I create an idle callback + GAsyncQueue in main thread.
> When non-gui thread push message to GAsyncQueue, my idle callback will
> be wakeup and do the GUI update.

You don't need the GAsyncQueue. Just call g_idle_add() from the
non-gui thread and the idle callback will run in the gui thread next
time the main loop is idle. I do this in my app and it works well on
linux and windows.

John
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux