Hi Jussi, > >> + g_queue_push_tail(service->ipconfig_state_queue, data); > >> + > >> + /* XXX This is just a stupid idea: Let's defer everything by 1 second. > >> */ > >> + g_timeout_add_seconds(1, ipconfig_queue_process, service); > > > > could not agree more ;) > > > > However a g_timeout_add_seconds(0, ...) might be enough. By just having > > to leave the mainloop and re-enter it you ensure that everything is > > queued up properly. > > g_idle_add() should then be perfect for this.
problem is just that g_idle_add is not really executed if any other source is still busy, g_timeout_add is. And this is actually time critical. We wanna process this as fast as possible. Even if some other service is currently doing a WISPr SSL transaction. Regards Marcel _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
