Re: Glib signal_timeout
- From: Murray Cumming <murrayc murrayc com>
- To: "Diego A. Fons" <diegofons apexar com>
- Cc: gtkmm-list gnome org
- Subject: Re: Glib signal_timeout
- Date: Thu, 11 Dec 2008 15:57:13 +0100
On Thu, 2008-12-11 at 11:38 -0200, Diego A. Fons wrote:
> Hi,
>
> I'm trying to set timeout functions at different intervals in a GTKmm
> application. I'm using this method (signal):
> Glib::signal_timeout().connect(sigc::ptr_fun(&timeout_handler), 1000);
>
> My question is if it is possible to set several timeout sources, like this:
> Glib::signal_timeout().connect(sigc::ptr_fun(&timeout_handler_1), 100);
> Glib::signal_timeout().connect(sigc::ptr_fun(&timeout_handler_2), 500);
>
> The result of making those calls is two independent handlers executing
> one at 100 and the other at 500 ms? or the handlers will execute both at
> 100 and 500 ms?
That's two signal handlers that will be called independently.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]