|
Entropic 2.14.3
Local-first agentic inference engine
|
gh#158: per-thread publication of the running turn's cancel token. More...

Go to the source code of this file.
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Functions | |
| ENTROPIC_EXPORT const std::atomic< bool > * | entropic::current_run_cancel () |
| The cancel token of the run executing on this thread, if any. | |
| ENTROPIC_EXPORT bool | entropic::current_run_cancelled () |
| Whether THIS thread's run has been cancelled. | |
| ENTROPIC_EXPORT bool | entropic::cancel_current_run () |
| Cancel the run executing on this thread (gh#158). | |
| ENTROPIC_EXPORT std::string | entropic::current_run_session () |
| The session key of the run executing on this thread (gh#166). | |
| ENTROPIC_EXPORT bool | entropic::emit_to_current_run_stream (const char *chunk, size_t len) |
| Deliver a chunk to the stream sink published on THIS thread. | |
gh#158: per-thread publication of the running turn's cancel token.
The thread-local lives in ONE translation unit and is reached only through the exported accessors below — the same shape as t_current_handle_id in logging.cpp, and for the same reason: entropic-types is an OBJECT library whose objects are embedded in several .so files, so a thread-local defined in a header would be a DIFFERENT variable per library. Confining it here and exporting the accessors with default visibility leaves the dynamic linker one definition to resolve against.
Definition in file run_scope.cpp.