From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Add current-suspendable-io-status parameter Date: Wed, 15 May 2019 12:09:19 +0200 Message-ID: <20190515100919.GG32396@tuxteam.de> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xs+9IvWevLaxKUtW" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="8366"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: guile-devel To: Nala Ginrut Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed May 15 12:09:50 2019 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQqr6-000223-9J for guile-devel@m.gmane.org; Wed, 15 May 2019 12:09:48 +0200 Original-Received: from localhost ([127.0.0.1]:34561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQqr5-0007Ki-AL for guile-devel@m.gmane.org; Wed, 15 May 2019 06:09:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQqqp-0007KR-U7 for guile-devel@gnu.org; Wed, 15 May 2019 06:09:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQqqn-0001nh-Lg for guile-devel@gnu.org; Wed, 15 May 2019 06:09:31 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:49028) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQqqn-0001aJ-5G for guile-devel@gnu.org; Wed, 15 May 2019 06:09:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:Date; bh=E8FxL9E1Lhj3WsCEsBOodppvfw510UgWTLYsFrrsMJI=; b=NJrpkZEgLeBY9tq3d2tVcCENDLQCx9eZcHT8MJwc4lFJ4LJLH0IR2w3TqqVZf27f26LyOUvkl70fL9LSj28/cC6L9yCwfZdpWK1Ci2MQKXwC4wd/snyjOwd2DtklrQiKJOsi1NI9xjuSgEeGgtbYayvkfOS25l1qs4UpBPJVqHGHa52ZQnZTViZ33ZLpnZcD11hluzSoElWKZIatz6gk9PM91NNaWL3mMlON90xjhYlNBELlqwFr8/vJ1m3jlUAIdXXdcjbTIAkm2hBX308nWAshnFVZCfNe58y/gmAjqRipe7+o+KRaog6U7E6XAMxvLeAge0MYDkfLv1jN667zZg==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1hQqqd-0001yQ-Ed; Wed, 15 May 2019 12:09:19 +0200 Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19916 Archived-At: --xs+9IvWevLaxKUtW Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 13, 2019 at 06:54:38PM +0800, Nala Ginrut wrote: > Hi folks! > Here's a patch to add current-suspendable-io-status: > Its result is a pair: (finished-bytes . rest-bytes) Sorry for this possibly dumb question, but... is there a way to be non-blocking even if there are no readable/writable bytes at all? Or would one have to do multi-threading (and let the single threads [1] block) for that? Thanks [1] not necessarily "operating system" threads -- tom=C3=A1s --xs+9IvWevLaxKUtW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlzb5U8ACgkQBcgs9XrR2kaj/QCfW3h/UJD1vdIa6BoDxEep4oYU j6kAniE3HFLraAZKP/ptbxANPKsOALMg =CR1v -----END PGP SIGNATURE----- --xs+9IvWevLaxKUtW--