projects
/
8sync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
027301a
)
doc: Fix initial sleeper.
author
Jan Nieuwenhuizen
<janneke@gnu.org>
Thu, 18 Apr 2019 05:10:41 +0000
(07:10 +0200)
committer
Jan Nieuwenhuizen
<janneke@gnu.org>
Mon, 22 Apr 2019 17:18:04 +0000
(19:18 +0200)
* doc/8sync.texi (Writing our own actors): Add missing slot to initial
sleeper example.
doc/8sync.texi
patch
|
blob
|
history
diff --git
a/doc/8sync.texi
b/doc/8sync.texi
index 67eba86d284a1b1fdb855300ae826e4bf9c565d1..7412ea1e75942a11cdf532ddaa51f8a221830a95 100644
(file)
--- a/
doc/8sync.texi
+++ b/
doc/8sync.texi
@@
-441,7
+441,8
@@
How about an actor that start sleeping, and keeps sleeping?
(define-class <sleeper> (<actor>)
(actions #:allocation #:each-subclass
#:init-thunk (build-actions
- (*init* sleeper-loop))))
+ (*init* sleeper-loop)))
+ (sleep-secs #:init-value 1 #:getter sleeper-sleep-secs))
(define (sleeper-loop actor message)
(while (actor-alive? actor)