Re: g_timeout_add(0, ...)



    Peter> The handler added by g_idle_add() would have a different
    Peter> execution priority than you might want.

    Peter> g_idle_add_full (G_PRIORITY_DEFAULT, ...);

    Peter> Might be a closer equivalent to what the OP was wanting; some
    Peter> means to get their callback called soon after the execution gets
    Peter> back to the main-loop.

Yes.  Would g_timeout_add_full(G_PRIORITY_HIGH, ...) be even better or might
the main loop not regain control before the callback executes?

Thanks,

-- 
Skip Montanaro - skip pobox com - http://smontanaro.dyndns.org/


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