|
Entropic 2.3.8
Local-first agentic inference engine
|
gh#59 (v2.3.1): RAII guard combining api_mutex + log scope. More...
#include </home/runner/work/entropic/entropic/src/facade/engine_handle.h>
Public Member Functions | |
| HandleApiLock (entropic_handle_t h) | |
| Lock handle mutex + enter log scope. | |
| HandleApiLock (const HandleApiLock &)=delete | |
| HandleApiLock & | operator= (const HandleApiLock &)=delete |
gh#59 (v2.3.1): RAII guard combining api_mutex + log scope.
Drop-in replacement for the v2.0.0–v2.3.0 pattern std::lock_guard lock(handle->api_mutex);. Acquires the per-handle mutex AND installs the per-handle log scope so any spdlog line emitted from this thread routes through the HandleAwareSink to the right session.log. Destructor releases both in correct order (log scope first, then mutex).
Single-call refactor target — every facade entry point that used std::lock_guard lock(handle->api_mutex) now uses this.
@utility
Definition at line 172 of file engine_handle.h.
|
inlineexplicit |