From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: NS port thread problems Date: Sat, 23 Oct 2021 11:27:45 +0100 Message-ID: References: <20200129204234.GB60190@breton.holly.idiocy.org> <87k0i8cs59.fsf@yahoo.com> <8735ov8bbe.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18159"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs-Devel devel To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 23 12:29:01 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 1meEGq-0004Wu-NV for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Oct 2021 12:29:01 +0200 Original-Received: from localhost ([::1]:52562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meEGp-0002Cv-O1 for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Oct 2021 06:28:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meEFj-00017R-2h for emacs-devel@gnu.org; Sat, 23 Oct 2021 06:27:51 -0400 Original-Received: from outbound.soverin.net ([116.202.126.228]:37769) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meEFf-0000Vc-SO for emacs-devel@gnu.org; Sat, 23 Oct 2021 06:27:50 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id B6B80D1; Sat, 23 Oct 2021 10:27:44 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1634984864; bh=zdkpm+ckxNVvgWOaHQlbjAqhS6k5/EkuCHztEBo0RUI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W2ND07jbEhQZLhoTy9xBvPvA8HId/ymAL/B0zrLdCItdqjQAPxVbIOu/2w5fGbhQj uReDjM89U5IH048CJ+UIDzmivWtU256SWUAdwXJ0LuVp3N/UE3yt7eI2O6Epcv1gul raxqAHA7tAhKzQyLjD9WiCmfnX4mpKlKbP0VeupB0eanGVAbtJQFqezNyHBgPoNNg0 zsG49c0ytiUawuzLNQTkCbhyqM2v0JkuQk0ZL65eba/iXfa6SBjXGpFsXiOzknM1l7 ZVjtMYRV8auir7sg6PEta5miTxpwZwwWFKZoHeeKjQpfFCRqx1W1uf6Vkj2vufuCFw sgCzWPo7CpiAw== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.95-RC2) (envelope-from ) id 1meEFd-000cjj-1D; Sat, 23 Oct 2021 11:27:45 +0100 Mail-Followup-To: Alan Third , Po Lu , Emacs-Devel devel Content-Disposition: inline In-Reply-To: <8735ov8bbe.fsf@yahoo.com> Received-SPF: pass client-ip=116.202.126.228; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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:277609 Archived-At: On Thu, Oct 21, 2021 at 08:35:01AM +0800, Po Lu wrote: > Alan Third writes: > > > One solution would be to use Objective C "blocks" to run the code in > > the main thread, but GCC doesn't support them, so that's out. > > I'm aware of this feature, but I don't understand how it will allow for > running code in the main thread. You can send a block off to run in another thread. Look up dispatch_sync and friends. -- Alan Third