Re: Glib signal_timeout



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]