Re: Discouraging use of sync APIs



On Mon, 2015-02-09 at 12:53 +0000, Emmanuele Bassi wrote:
<snip>
I do agree with Philip's proposal of warning if the sync API is called
inside the default main context, even if there's the obvious issue of
console-only code that still uses a main loop, but does not have
interactivity issues.

I wouldn't want that. I can certainly see that as a necessary evil (say
on application startup), and would rather it threw an error if that sync
call took too long instead.

maybe we could use G_ENABLE_DIAGNOSTIC for this kind of messages;
after all, we're already using it for deprecated properties and
signals.




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