From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Concurrency, again Date: Tue, 18 Oct 2016 12:22:38 +0300 Message-ID: <8337juxb8h.fsf@gnu.org> References: <87wq97i78i.fsf@earlgrey.lan> <86k2dk77w6.fsf@molnjunk.nocrew.org> <9D64B8EA-DB52-413D-AE6A-264416C391F3@iotcl.com> <83int1g0s5.fsf@gnu.org> <83twckekqq.fsf@gnu.org> <874m4aic0g.fsf@tromey.com> <7D150317-7A01-464D-8352-942631A3116B@raeburn.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1476782591 19997 195.159.176.226 (18 Oct 2016 09:23:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2016 09:23:11 +0000 (UTC) Cc: tom@tromey.com, emacs-devel@gnu.org To: Ken Raeburn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 18 11:23:07 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwQbv-0004L2-Qx for ged-emacs-devel@m.gmane.org; Tue, 18 Oct 2016 11:23:03 +0200 Original-Received: from localhost ([::1]:39806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwQby-0004mB-1T for ged-emacs-devel@m.gmane.org; Tue, 18 Oct 2016 05:23:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwQbs-0004ln-4r for emacs-devel@gnu.org; Tue, 18 Oct 2016 05:23:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwQbp-0007qU-16 for emacs-devel@gnu.org; Tue, 18 Oct 2016 05:23:00 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwQbo-0007qL-Tq; Tue, 18 Oct 2016 05:22:56 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3071 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bwQbn-0004wW-Ry; Tue, 18 Oct 2016 05:22:56 -0400 In-reply-to: <7D150317-7A01-464D-8352-942631A3116B@raeburn.org> (message from Ken Raeburn on Tue, 18 Oct 2016 03:58:04 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:208397 Archived-At: > From: Ken Raeburn > Date: Tue, 18 Oct 2016 03:58:04 -0400 > Cc: emacs-devel@gnu.org > > I collected some notes from those past discussions, though it was often unclear whether there was consensus on certain things being needed or whether they were just ideas being kicked around. My list, aside from the note to go back and review the discussions again :-) … > > * collapse systhread and thread, adding w32threads.c to emulate the pthread interface This can be done later, it's not a critical issue, IMO. > * header inclusion order requirement is weird; can generating one big header help? I'm not sure I understand what inclusion order is being alluded to here. Can you elaborate? > * field names and faking globals with macros: maybe change m_ prefix, maybe add BVAR-like macro Again, not critical. > * one thread per terminal? Why? > * file notifications and such shouldn’t go through same queue as keyboard events Why? > * interaction of SIGCHLD handling and threads? Details? > * handle errors in lower-level routines like sys_cond_init > * ns_select needs fixing > > There are also uses of jmp_buf in places that should be examined carefully, like stack overflow handling, keyboard.c:getcjmp, and image handling code. I'd say, insert appropriate FIXME comments where these issues pop up, and leave this for later, unless the solution is already known. Thanks.