Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::HandleApiLock Class Reference

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
 
HandleApiLockoperator= (const HandleApiLock &)=delete
 

Detailed Description

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

Version
2.3.1

Definition at line 172 of file engine_handle.h.

Constructor & Destructor Documentation

◆ HandleApiLock()

entropic::HandleApiLock::HandleApiLock ( entropic_handle_t  h)
inlineexplicit

Lock handle mutex + enter log scope.

Version
2.3.1

Definition at line 175 of file engine_handle.h.


The documentation for this class was generated from the following file: