1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-22 04:30:19 +02:00
guile/module
Ludovic Courtès 2c7b350f93 srfi-18: When timeout is a number, it's a relative number of seconds.
Fixes <https://bugs.gnu.org/29704>.
Reported by David Beswick <dlbeswick@gmail.com>.

* module/srfi/srfi-18.scm (timeout->absolute-time): New procedure.
(mutex-lock!): Use it in 'thread:lock-mutex' call.
(mutex-unlock!): Use it.
* test-suite/tests/srfi-18.test ("mutex-lock! returns false on timeout")
("mutex-lock! returns true when lock obtained within timeout")
("recursive lock waits")
("mutex unlock is false when condition times out"): Adjust cases where
the 'timeout' parameter is a number so that it's a relative number.
2018-02-16 15:29:35 +01:00
..
ice-9 Revert "Honor '%fresh-auto-compile'." 2018-01-15 23:17:24 +01:00
language Avoid generating arity-adapting zero-value conts where possible 2017-12-01 11:01:39 +01:00
oop Add struct-ref/unboxed, struct-set!/unboxed 2017-09-25 21:54:36 +02:00
rnrs Use make-struct/no-tail instead of make-struct 2017-09-20 22:07:18 +02:00
scripts compile: Load language modules upfront. 2017-12-22 17:00:33 +01:00
srfi srfi-18: When timeout is a number, it's a relative number of seconds. 2018-02-16 15:29:35 +01:00
sxml Remove duplicate definitions of call/ec' and let/ec'. 2013-04-06 15:40:19 +02:00
system foreign: Add 'uintptr_t' and 'intptr_t'. 2017-11-22 16:33:57 +01:00
texinfo texinfo: Remove unnecessary (oop goops) dependency. 2017-03-01 19:28:04 +01:00
web http: Fix typo in proxy handling in 'write-request-line'. 2017-11-11 15:14:54 +01:00
Makefile.am Fix sort, sort! for arrays with nonzero lower bound 2017-10-31 13:23:17 +01:00
rnrs.scm Add R6RS bytevector->string, string->bytevector 2016-06-21 11:29:14 +02:00
statprof.scm Fixed bug: statprof flat display wasn't writing summary lines to port 2017-04-19 16:25:00 +02:00
texinfo.scm texinfo: fix @url{@@} parsing 2014-11-09 15:56:33 +00:00