From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: the state of the concurrency branch Date: Tue, 27 Aug 2013 22:08:41 +0300 Message-ID: <83fvtveyti.fsf@gnu.org> References: <87vc2t7erx.fsf@fleche.redhat.com> <83txicffpe.fsf@gnu.org> <87haeb3lwp.fsf@fleche.redhat.com> <83mwo3f762.fsf@gnu.org> <521CEA4D.9040900@cs.ucla.edu> <8738pv0z8v.fsf@fleche.redhat.com> <521CF24F.9020703@cs.ucla.edu> <87ob8jynt3.fsf@fleche.redhat.com> <521CF58A.20507@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1377630540 21724 80.91.229.3 (27 Aug 2013 19:09:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Aug 2013 19:09:00 +0000 (UTC) Cc: tromey@redhat.com, lekktu@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 27 21:09:02 2013 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 1VEOdR-0001Kx-8L for ged-emacs-devel@m.gmane.org; Tue, 27 Aug 2013 21:09:01 +0200 Original-Received: from localhost ([::1]:58036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEOdQ-0007RB-Pt for ged-emacs-devel@m.gmane.org; Tue, 27 Aug 2013 15:09:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEOdJ-0007Qo-Cy for emacs-devel@gnu.org; Tue, 27 Aug 2013 15:08:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEOdE-0004F7-HQ for emacs-devel@gnu.org; Tue, 27 Aug 2013 15:08:53 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:58420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEOdE-0004F2-9W for emacs-devel@gnu.org; Tue, 27 Aug 2013 15:08:48 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MS700F00EBY4L00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Tue, 27 Aug 2013 22:08:27 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MS700ENLEI3XW80@a-mtaout20.012.net.il>; Tue, 27 Aug 2013 22:08:27 +0300 (IDT) In-reply-to: <521CF58A.20507@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:163059 Archived-At: > Date: Tue, 27 Aug 2013 11:52:58 -0700 > From: Paul Eggert > CC: Eli Zaretskii , lekktu@gmail.com, > monnier@iro.umontreal.ca, emacs-devel@gnu.org > > On 08/27/13 11:46, Tom Tromey wrote: > > What is your plan for the no-threads case? > > Use the gnulib pthreads module. It arranges for > "#include a no-op implementation for platforms that don't support > pthreads. It's similar to what is in systhread.h now, > except it doesn't impose an extra naming layer. I'd like to be at liberty to implement the few threads calls needed for Emacs in a way that doesn't use pthreads ported to Windows. Pth doesn't seem to support Windows (and the latest release was in 2006, not an encouraging sign). Gnulib pthreads is OK for a no-op implementation, but that's not what I have in mind. Please make the changes to the current code keeping in mind a separate non-pthread implementation for MS-Windows. (I'm okay with adding a separate file, say w32thread.c, which would emulate pthread calls, if that's the model we want to follow exclusively. Alternatively, we could have a separate HAVE_PTHREADS and HAVE_W32THREADS branches of the same few low-level functions.)