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_channelreturns the creating VM's object within that VM and a separateId/Firetable in any other.
See Environment for the VM boundary.
Functions
| Function | Purpose |
|---|---|
| run_on_actor | Schedules source code in a VM selected by a Actor. |
| run_on_thread | Schedules source code in a VM selected by a thread. |
| get_current_actor | Returns the Actor associated with the current thread. |
| getactorstates | Lists known VM state threads other than the current place state. |
| getactorthreads | Lists collector threads across known actor states. |
| getdeletedactors | Returns the current deleted-actor result table. |
| getgamestate | Returns the current executor world's state thread. |
| getluastate | Returns the current state or an Actor's VM state. |
| create_comm_channel | Creates a local communication channel and registers its delivery callback. |
| get_comm_channel | Looks up a communication channel by ID. |
| comm_channel_bind | Registers a delivery callback for a channel ID in the current VM. |
| comm_channel_fire | Sends values through the registered delivery halves of a channel. |
