|
Toast Engine
|
Static Public Member Functions | |
| static void | enqueue (size_t vm_index, std::move_only_function< void()> job) |
| Queues job which runs while the interpreter vm_index is owned. | |
| static auto | mustQueue (size_t vm_index) noexcept -> bool |
| True when a call from this thread into the interpreter vm_index has to join the queue instead of running. | |
| static auto | pending () noexcept -> size_t |
| Number of jobs waiting for delivery. | |
| static auto | deliver (int max_rounds=4) -> size_t |
| Runs the queued work. | |
| static void | clear () noexcept |
| Drops everything that is still queued without running it; used when the world is torn down. | |
|
static |
Runs the queued work.
| max_rounds | work queued by delivered work is delivered in further rounds, up to this many |
