From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLkxf-0000mh-Ky for qemu-devel@nongnu.org; Wed, 20 Jan 2016 00:05:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLkxc-00059y-Du for qemu-devel@nongnu.org; Wed, 20 Jan 2016 00:05:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLkxc-00059s-6D for qemu-devel@nongnu.org; Wed, 20 Jan 2016 00:05:36 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 272DF44594 for ; Wed, 20 Jan 2016 05:05:35 +0000 (UTC) References: <1453110880.23289.7.camel@redhat.com> <569D4C69.5070304@redhat.com> <1453208507.18326.77.camel@redhat.com> <20160119152842.GN26662@redhat.com> From: Eric Blake Message-ID: <569F159D.4000501@redhat.com> Date: Tue, 19 Jan 2016 22:05:33 -0700 MIME-Version: 1.0 In-Reply-To: <20160119152842.GN26662@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AKb1AbbvGdsKDuxwWh8BVGilSOtktc2nJ" Subject: Re: [Qemu-devel] RFC: running the user interface in a thread ... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" , Gerd Hoffmann Cc: David Airlie , =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , qemu-devel This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --AKb1AbbvGdsKDuxwWh8BVGilSOtktc2nJ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/19/2016 08:28 AM, Daniel P. Berrange wrote: > On Tue, Jan 19, 2016 at 02:01:47PM +0100, Gerd Hoffmann wrote: >> Hi, >> >>> That, and so the UI can use localization without corrupting other >>> threads that MUST use the C locale (QMP parsing/output of floating po= int >>> is particularly important to get right with '.' instead of ',' for a >>> decimal separator). >> >> A quick look at the setlocale manpage doesn't make clear whenever >> threads can have different locales or not. >=20 > glibc has per-thread locales, but this isn't guaranteed portable across= > unix platforms. POSIX requires it, but not all the world has caught up to POSIX. > We could enable per-thread localization on Linux builds > but disable it on other platforms. Sure, that's a reasonable compromise. >=20 >> Related: Possibly we should move UIs to another *process* instead? >> At least the ones which use a UI toolkit (i.e. sdl, gtk, cocoa). >=20 > Is the worth the effort ? The majority of mgmt apps use spice/vnc which= > is already out of process. Will the people do use SDL/GTK/Coca backends= , > be doing so in a scenario where moving the UI to a separate process is > a benefit to them ? I'm not saying we shouldn't separate the UI to > another process, just that we should consider whether there's other > things todo in QEMU UI layer that are a better payoff for the userbase.= I haven't done enough UI programming to have an informed opinion here. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --AKb1AbbvGdsKDuxwWh8BVGilSOtktc2nJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWnxWdAAoJEKeha0olJ0NqxIQH/3lzxIHFJUY7vVieRwc4f2o/ qN1J5oPHGP1oeFOCmsn6iFeCt8kVhcxiaekCHPRLkALVK4GQuKkD9CYd/wba4HGD iVlOovek3b/aKghNHeCxeHUy3/oS7oraYDKJcIkA+d1OoGshpLdQvZMZo5qO2jX6 ojqwLBDlcEg7ecmPXAWecuGTrJBDd2FpIr2kVfbaYeEvGMq4UhFsVXTmooln6iVg Ov9FwWF8Jud0p/6URy+aftaL6pXXAe1LIt74nLcwLuqT4BHx7MtOfZS2fxSoxJMx odsRv2i8F9PXk9fdKWKuwn3gpibzgqJBBJKlf7upq9Z6ndWXcBet2ugsM/vVdd4= =cwJ6 -----END PGP SIGNATURE----- --AKb1AbbvGdsKDuxwWh8BVGilSOtktc2nJ--