Re: Thread problem in Windows
- From: Filipe Apostolo <f apostolo cbr gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Thread problem in Windows
- Date: Tue, 22 Sep 2009 10:40:21 +0100
Chris Vine wrote:
> On Mon, 21 Sep 2009 12:43:01 -0400
> Armin Burgmeier <armin arbur net> wrote:
>> Use an idle handler or Glib::Dispatcher instead. I think for the
>> latter there is an example in the gtkmm and/or glibmm tarball on how
>> to use it.
> In glibmm, posting idle callbacks is not thread safe, so
> Glib::Dispatcher would be the way to go if a timeout to report progress
> does not do what the OP wants, or he could use glib's
> g_idle_add()/g_idle_add_full() directly, which are thread safe if he
> has called Glib::thread_init/g_thread_init() first.
Ok, I've never heard about Glib::Dispacher until yesterday, I will tray
it, is there a good example or documentation for it?
] [Thread Prev