From: Andy Wingo <wingo@pobox.com>
To: Takashi Kato <ktakashi19@gmail.com>
Cc: 22767@debbugs.gnu.org
Subject: bug#22767: Thread-sleep! doesn't sleep
Date: Sun, 07 Aug 2016 23:32:26 +0200 [thread overview]
Message-ID: <87twewnu39.fsf@pobox.com> (raw)
In-Reply-To: <CACcjVL3kCz3KAadnR05q6iYK4YczCbbcqmQL5C5BmFigs4mwwg@mail.gmail.com> (Takashi Kato's message of "Mon, 22 Feb 2016 12:37:56 +0100")
Hi Takashi,
Thank you for the report.
On Mon 22 Feb 2016 12:37, Takashi Kato <ktakashi19@gmail.com> writes:
> I think I've found a bug of thread-sleep! defined in SRFI-18 library.
> The file module/srfi/srfi-18.scm line 233 subtract current time from
> given timeout argument but this results negative number most of the
> case. I think this line should simply return timeout as it is.
You are right. Guile's documentation indicates that the timeout is an
absolute time as a SRFI-18 time object, but the SRFI itself says that
timeouts are either:
* a time object represents an absolute point in time
* an exact or inexact real number represents a relative time in
seconds from the moment the primitive was called
So I guess when passed a number, that's not to be interpreted as an
absolute time from the epoch, but rather a relative timeout. We need to
update our documentation and tests, it seems, and issue a prominent NEWS
entry...
Andy
prev parent reply other threads:[~2016-08-07 21:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-22 11:37 bug#22767: Thread-sleep! doesn't sleep Takashi Kato
2016-08-07 21:32 ` Andy Wingo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87twewnu39.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=22767@debbugs.gnu.org \
--cc=ktakashi19@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).