Porting async calls to GTask: newcomers welcome!

Aleksander Morgado aleksander at aleksander.es
Mon Feb 1 16:59:50 CET 2016


On Mon, Feb 1, 2016 at 7:53 AM, Dan Williams <dcbw at redhat.com> wrote:
>> http://cgit.freedesktop.org/ModemManager/ModemManager/commit/?id=aeb6
>> 3621723fd3d7e39870466d2cffcf56fc6570
>
> One downside I note is that with g_task_propagate_pointer() we no
> longer have easy access to pointer itself, so we drop the debug
> logging...

You mean within finish()? Well, if logging is required there, we could
always propagate to a local variable first, log, and then return the
variable. Or, otherwise let the caller of the method to do the logging
if needed.

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list