macro_rules! lock_engine {
($mutex:expr) => { ... };
}Expand description
Acquire an engine mutex on a tool dispatch path. A poisoned lock
(a prior tool call panicked) early-returns the typed
ENGINE_LOCK_POISONED envelope instead of panicking the server —
usable only inside functions returning CallToolResult.