Re: Event loop hangup when using TimeoutSource and IdleSource
- From: Chris Vine <chris cvine freeserve co uk>
- To: Jim Hodapp <james hodapp gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Event loop hangup when using TimeoutSource and IdleSource
- Date: Thu, 24 Sep 2009 23:06:06 +0100
On Thu, 24 Sep 2009 17:46:40 -0400
Jim Hodapp <james hodapp gmail com> wrote:
> Also, you mentioned the boost signals2 library. How do you use this
> library instead of sigc with glibmm objects like Glib::IdleSource or
> Glib::TimeoutSource. They seem to want sigc slots specifically.
You can't, although it is relatively trivial to make your own wrapper
for g_idle_add_full() and g_timeout_add_full(), both of which are
thread safe, using boost::function and/or boost::signal2 if you so want.
But I think this is a red herring, since you do not (you say) allow
more than one thread to get into any of your application functions. You
have a much simpler null pointer issue by the looks of it.
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]