AcediaDocumentation

Actors & threads

VM selection, source scheduling and communication channels.

Actor and thread helpers select a VM and schedule source in it.

  • A scheduled chunk runs independently in the selected VM; it does not resume the supplied thread.
  • Communication channels have a native delivery path. The channel table is per VM, so get_comm_channel returns the creating VM's object within that VM and a separate Id/Fire table in any other.

See Environment for the VM boundary.

Functions

FunctionPurpose
run_on_actorSchedules source code in a VM selected by a Actor.
run_on_threadSchedules source code in a VM selected by a thread.
get_current_actorReturns the Actor associated with the current thread.
getactorstatesLists known VM state threads other than the current place state.
getactorthreadsLists collector threads across known actor states.
getdeletedactorsReturns the current deleted-actor result table.
getgamestateReturns the current executor world's state thread.
getluastateReturns the current state or an Actor's VM state.
create_comm_channelCreates a local communication channel and registers its delivery callback.
get_comm_channelLooks up a communication channel by ID.
comm_channel_bindRegisters a delivery callback for a channel ID in the current VM.
comm_channel_fireSends values through the registered delivery halves of a channel.

On this page