diff options
author | Ludovic Courtès <ludo@gnu.org> | 2013-03-27 18:03:47 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2013-03-27 18:09:49 +0100 |
commit | 8a177d316c0062afe74f9a761ef460e297435e59 (patch) | |
tree | 8cba3ce3b9440946a7b294a1a873b602a712ede0 /libguile/async.h | |
parent | 8cd109bf0a10e37c26bf476fed81a0d4282d13c6 (diff) | |
download | guile-8a177d316c0062afe74f9a761ef460e297435e59.tar.gz |
futures: Limit the number of nested futures on the same stack.
Fixes <http://bugs.gnu.org/13188>.
Reported by Nala Ginrut <nalaginrut@gmail.com>.
* module/ice-9/futures.scm (%nesting-level): Rename to...
(%nesting-level): ... this. Default to 0 instead of #f. Update
users.
(%max-nesting-level): New variable.
(touch): When FUTURE is queued and (%nesting-level) is above
%MAX-NESTING-LEVEL, abort to %FUTURE-PROMPT.
* test-suite/tests/future.test ("nested futures")["loop"]: Remove
`compile' call.
* test-suite/tests/threads.test ("par-map")["long list"]: New test.
* doc/ref/api-scheduling.texi (Futures): Add a paragraph about stack
consumption.
Diffstat (limited to 'libguile/async.h')
0 files changed, 0 insertions, 0 deletions