From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lynn Winebarger Newsgroups: gmane.emacs.devel Subject: Blocking calls and threads Date: Thu, 20 Apr 2023 01:31:14 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8641"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 20 07:31:57 2023 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 1ppMth-00028Y-13 for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Apr 2023 07:31:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppMsk-0003KJ-JU; Thu, 20 Apr 2023 01:30:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppMsa-0003HG-5z for emacs-devel@gnu.org; Thu, 20 Apr 2023 01:30:50 -0400 Original-Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppMsY-0002Lj-IN for emacs-devel@gnu.org; Thu, 20 Apr 2023 01:30:47 -0400 Original-Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-63b73203e0aso4397350b3a.1 for ; Wed, 19 Apr 2023 22:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681968644; x=1684560644; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=H5QlL0rW+5hrxNb8kydlOZrxtvbXu/IoCRPttEA+OYE=; b=DVuGsYhUtirIPHCJeZcap/w01ZzLPQ+5ktdBFF1IdRWJUDmJUPaDxQnrPYr2wie4zH TJJPJ8oRj/rpt+xPu/FeIVod50eL8Mzzxj1xF2Xy57tMCXVVSbzhD3L/45FTgAjfR/j9 sav0/Lfkp2yG6nHFeF2nolCaLCQjYcy0SaE75oCeT8gpZKP9hgVAyvs7AmeRNk5sBgNA X7qCVcq380+/RcRFSjRJLR+VhtAeZ4b1TPcCvt+2HEWoDLrYr6X8rp/HuHARfEKGzIfi qnsWifcaDIP4wmUodfJTAeIvAPYS8F+/VhkxwlsOo8NavZRQbsJODoH+9+nBNeyiTIQ/ O6Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681968644; x=1684560644; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=H5QlL0rW+5hrxNb8kydlOZrxtvbXu/IoCRPttEA+OYE=; b=RrLXefUb9t8KX4h+eagStGB85MC9ene256G5/dFmps4FVRoTw9GnAfy5NMwdrP3cdI AkSIPbERRxIGYIcM/CXtHhZ4wT2Yfr0mLW7+31iEoCEd9kN+YWW9y1bF2GXUmJSM0Jmm D//9yc2WnmZYcaWeuJB1Io+4R+5cVfvlr9JU0G8RxjZa16GkThvDFbTt5UrNd4mkEtom 1tEZHmzfmivOu5UC866OBik6+yxNfnibU5zaoWyRCVFrAuCEG4VsWJlawucscP9Ddnbv mrAsM9jJt3p06EFn+LLdRL6IhKodjPQJMATEh80stFVbVpeNd8RyeYgRekAfRxgKaGQZ +Nug== X-Gm-Message-State: AAQBX9c5J5uZ2pee7vodQu/G9UMt4UXuDOAjIOjpil/Am2Z6HHKMoOgj tzrAHFRCOCZ3B5GSgflfKD/4cjzccV8JQog4OUG1A+yC X-Google-Smtp-Source: AKy350asqLYeYcLaqwp+7J7FAFyr1+7f1Kguqp04M0b08Gdcc5CqvuY4xP/I8EVho/MhCGaNuC9SePJilvpA8k47pTQ= X-Received: by 2002:a17:90a:1289:b0:24b:39ee:672d with SMTP id g9-20020a17090a128900b0024b39ee672dmr2111143pja.3.1681968643476; Wed, 19 Apr 2023 22:30:43 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=owinebar@gmail.com; helo=mail-pf1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305484 Archived-At: The thread on how to make asynchronous behavior explicit made me curious whether making a blocking system call would cause the lisp thread to yield to other lisp threads (release the global lock). Do blocking system calls yield the lisp thread, or is there any way in lisp code to call blocking functions so that the lisp thread will yield while the system thread blocks? Thanks, Lynn