From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: [PATCH 03/10] introduce systhread layer Date: Thu, 09 Aug 2012 18:39:37 -0700 Message-ID: <50246659.80200@dancol.org> References: <87mx23etza.fsf@fleche.redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig750A5AB18B4F3B427BD5E5D2" X-Trace: dough.gmane.org 1344562797 5775 80.91.229.3 (10 Aug 2012 01:39:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2012 01:39:57 +0000 (UTC) Cc: Emacs discussions To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 10 03:39:57 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SzeCj-0000RQ-Ar for ged-emacs-devel@m.gmane.org; Fri, 10 Aug 2012 03:39:57 +0200 Original-Received: from localhost ([::1]:37063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzeCi-0005ko-Gt for ged-emacs-devel@m.gmane.org; Thu, 09 Aug 2012 21:39:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzeCf-0005kX-Ml for emacs-devel@gnu.org; Thu, 09 Aug 2012 21:39:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzeCe-0007oh-Ln for emacs-devel@gnu.org; Thu, 09 Aug 2012 21:39:53 -0400 Original-Received: from dancol.org ([96.126.100.184]:45687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzeCe-0007mo-Fa for emacs-devel@gnu.org; Thu, 09 Aug 2012 21:39:52 -0400 Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[0.0.0.0]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1SzeCX-0006kP-IP; Thu, 09 Aug 2012 18:39:45 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: <87mx23etza.fsf@fleche.redhat.com> X-Enigmail-Version: 1.4.2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 96.126.100.184 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152391 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig750A5AB18B4F3B427BD5E5D2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 8/9/2012 12:38 PM, Tom Tromey wrote: > This introduces the low-level system threading support. It also adds > the global lock. The low-level support is a bit over-eager, in that > even at the end of the present series, it will not all be used. I > think thiat is ok since I plan to use it all eventually. >=20 > I've only implemented the pthreads-based version. I think it should > be relatively clear how to port this to other systems, though. >=20 > I'd also like to do a "no threads" port that will turn most things > into no-ops, and have thread-creation fail. I was thinking perhaps > I'd make a future (provide 'threads) conditional on threads actually > working. Thoughts on this? If threads don't execute simultaneously anyway (and if I understand your = design correctly, the global lock ensures they don't), then it might be worthwhi= le to also support a "green threads" implementation like GNU Pth or Windows fib= ers in order to avoid OS-level context switch overhead. --------------enig750A5AB18B4F3B427BD5E5D2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlAkZlsACgkQ17c2LVA10VvsnQCg0njeOD+xRBbxS3Wb0OfPLEXI BgYAoJdQCVR2vDBzXGf2YPIE9XCa7VTi =g5Vy -----END PGP SIGNATURE----- --------------enig750A5AB18B4F3B427BD5E5D2--