Hi Marcel, On 06/30/2011 10:45 PM, Marcel Holtmann wrote: > Hi Daniel, > > <snip> > >> + >> + 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.
Indeed 0 would be enough for this case. > > Adding a 1 seconds delay is make my pretty much angry since I care about > every millisecond in our connection time. I was perfectly aware of this. I was playing around and didn't know what I was doing hence the RFC :) cheers, daniel _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
