|
Toast Engine
|
Lifetime marker of one ScriptRuntime. More...
#include <script_context.hpp>
Public Attributes | |
| std::atomic< bool > | alive {true} |
| uint32_t | id = 0 |
| size_t | vm_index = 0 |
Lifetime marker of one ScriptRuntime.
Everything C++ keeps that points into a runtime's scripts (state machine callbacks, deferred calls, event subscriptions) holds the token and checks it before calling. It outlives the runtime and flips to dead as the runtime is torn down, so a stale callback is skipped instead of run