actors: Introduce non-reentrant actors by default. wip-non-reentrant-actors
authorRutger van Beusekom <rutger.van.beusekom@verum.com>
Thu, 19 Nov 2020 06:52:16 +0000 (07:52 +0100)
committerRutger van Beusekom <rutger.van.beusekom@verum.com>
Thu, 19 Nov 2020 10:38:19 +0000 (11:38 +0100)
commit7429578ca2d8511dca2e5ba1b2b79b11a9368f90
tree1f74c8286fe6e0c14a656bd47ab2782fabeabff3
parent4eb04372da31d1b47138bf0393d8e11db9299052
actors: Introduce non-reentrant actors by default.

* 8sync/actors.scm (actor-reentrant-message-handler): Rename from
actor-inheritable-message-handler.
(actor-non-reentrant-message-handler): New function that queues messages.
(<actor>): Change message-handler to that function and add message-q.
(<reentrant-actor>): New class for the old behaviour.
(initialize): Use the orignal message-handler for this new class.
8sync/actors.scm