From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Newsgroups: gmane.emacs.devel Subject: Re: master 8dcb19f 4/4: Add a unit test testing interaction between threads and processes. Date: Sun, 28 Feb 2021 19:52:11 +0100 Message-ID: <938C9CFA-19B5-4F5B-B2DF-12290AF6F6FC@gmail.com> References: <83k0s34eo1.fsf@gnu.org> <83h7n74cwe.fsf@gnu.org> <838s8i4ak8.fsf@gnu.org> <6C5E64C7-19A6-4D46-AC30-33C29FA5DEBB@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16880"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philipp Stephani , Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 28 19:53:22 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lGRBy-0004IL-E9 for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Feb 2021 19:53:22 +0100 Original-Received: from localhost ([::1]:48982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGRBx-0008Sx-FC for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Feb 2021 13:53:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGRAv-000814-UO for emacs-devel@gnu.org; Sun, 28 Feb 2021 13:52:17 -0500 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:46732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGRAs-0001HH-Bm; Sun, 28 Feb 2021 13:52:17 -0500 Original-Received: by mail-wr1-x434.google.com with SMTP id a18so5574236wrc.13; Sun, 28 Feb 2021 10:52:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=rT7cXac8d1i1IleRUgk4SWmVxriXnKQvnJWzQgIHPLY=; b=VTSCfSjYYFiG0EyfDbdUmyqADnezy5vA4l0pRGKJz0ARL1ALHUlO3/MpGP4fk1CbOl n6T91Z2kqof3oaTZZRqCZXcnmIKvQ4IPWZtn06VBYzHwe3UtzI6ndySfGE2M+2P8MHFQ Tx8spB1P4+QxMOalNerAucIOv3vP12OJLfYzqtqsFWSOquDmSWn8qkQEDEazJSTxzoBE 5UOjvwiIFymcxx9ZKV2B0GfZ+fJTXN7JRK360Jj8kgBdyy6ZAl44pAiapZbdVIQH9sDS 6gtVj5g90JRx9YasRTQZsWzKUWD5Fz6vAb2IdvyRNP7zrCFhXoaT3PNIVGoNs4UjY0/Q 7Ndg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=rT7cXac8d1i1IleRUgk4SWmVxriXnKQvnJWzQgIHPLY=; b=Pd1Ww70D9CZ/zmsejFwnZOVRShYuQCfekdBMOwPPwE/QEj4So0OinQtwruRuBoEhRD A2nlgttNLBToDxDXvWuzVkkKTsDk03qg6IQNpKA4VETayJaE9M8ehVVDoP3FXsxKdmmN ftdE8ti2SRx4OV5jWQ5vTIVz7t9Vj5t/xkxdx+jFiktrEGeA8X7e4UB1L1FszSeAvz02 x/IyfmUGW9D6ED+do04jvdsjxCAxmcg6+WfMd2XKGhhWoqufnmoY2lStXwy9wl92ughn /uRUaMCaXWJtuWqIZRR6jj4ydyof4Igzta663kid8d643lkYY2n5f+7bhO0sWgHmFhWl yiAg== X-Gm-Message-State: AOAM53343WpOXYgWr44ZGwzzWByN3N9AZhqXYlI6LbK/M6G9binpm0zD w2IfkGcRLXcaC/g1zkZxNu8= X-Google-Smtp-Source: ABdhPJwYB+Bm7Sjh/ZmDaLnEQtJRB785rorvkILWWNQ9fw9rqz1dSil+32baH10pTj/gH/PI61X34g== X-Received: by 2002:a5d:526b:: with SMTP id l11mr12914526wrc.385.1614538332201; Sun, 28 Feb 2021 10:52:12 -0800 (PST) Original-Received: from philipps-mbp.fritz.box ([46.128.208.19]) by smtp.gmail.com with ESMTPSA id w131sm7789180wmb.8.2021.02.28.10.52.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Feb 2021 10:52:11 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3654.60.0.2.21) Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=p.stephani2@gmail.com; helo=mail-wr1-x434.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265758 Archived-At: > Am 28.02.2021 um 19:36 schrieb Stefan Monnier = : >=20 >>> But set-process-thread accepts a thread argument, so you could bind >>> the process to a particular thread, couldn't you? >> Yes, but the threads that call `accept-process-output=E2=80=99 and >> `process-send-eof=E2=80=99 are different threads; binding the process = object to one >> of the threads would cause the other call to fail. >=20 > IIRC `set-process-thread` determines the thread in which the process > filters and sentinels are run. You can still call > `accept-process-output=E2=80=99 and `process-send-eof=E2=80=99 from = other threads. Partially yes. It's not possible to call `accept-process-output' from = other threads than the locked one, if there's one. So we could change the test to lock each process to the thread that = calls `accept-process-output'. I'm fine either way, it shouldn't change = the behavior of the test.=