`actor-alive?' was actully returning the boolean opposite of what it
should have. It turns out we don't need it anyway, so removed.
* 8sync/actors.scm (condition-signalled?, actor-alive?): Removed.
* 8sync/repl.scm (repl-manager-main-loop): Just loop on #t, since
daydream won't resume anyway if our actor dies.
actor-init! actor-cleanup!
- actor-alive?
-
build-actions
define-actor
(*actor-prompt* #f)
(actor-cleanup! actor))
-;; From a patch I sent to Fibers...
-(define (condition-signalled? cvar)
- "Return @code{#t} if @var{cvar} has already been signalled.
-
-In general you will want to use @code{wait} or @code{wait-operation} to
-wait on a condition. However, sometimes it is useful to see whether or
-not a condition has already been signalled without blocking."
- (atomic-box-ref ((@@ (fibers conditions) condition-signalled?) cvar)))
-
-(define (actor-alive? actor)
- (condition-signalled? (address-dead? (actor-id actor))))
(<- subscriber 'repl-update))
(.subscribers repl-manager)))
(set! (.socket repl-manager) socket)
- (while (actor-alive? repl-manager)
+ (while #t
(daydream (.poll-every repl-manager))
(poll-coop-repl-server server)
(inform-subscribers)))