Re: Discouraging use of sync APIs
- From: Bastien Nocera <hadess hadess net>
- To: Emmanuele Bassi <ebassi gmail com>
- Cc: desktop-devel-list <desktop-devel-list gnome org>
- Subject: Re: Discouraging use of sync APIs
- Date: Mon, 09 Feb 2015 14:02:13 +0100
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]