On 06/30/2011 11: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.

g_idle_add() should then be perfect for this.

 Jussi
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to