| 209 | // --- Parse timeout callback --- |
| 210 | |
| 211 | static bool cbm_timeout_cb(TSParseState *state) { |
| 212 | uint64_t deadline = *(uint64_t *)state->payload; |
| 213 | return now_ns() > deadline; |
| 214 | } |
| 215 | |
| 216 | // --- Thread-local parser pool --- |
| 217 | // TSParser is not thread-safe, but can be reused across files on the same thread. |