Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
hook_registry.h File Reference

Thread-safe hook registration and dispatch. More...

#include <entropic/types/hooks.h>
#include <entropic/types/error.h>
#include <array>
#include <shared_mutex>
#include <vector>
Include dependency graph for hook_registry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  entropic::HookEntry
 A single registered hook entry. More...
 
class  entropic::HookRegistry
 Thread-safe hook registration and dispatch. More...
 

Namespaces

namespace  entropic
 Activate model on GPU (WARM → ACTIVE).
 

Detailed Description

Thread-safe hook registration and dispatch.

HookRegistry manages per-hook-point callback lists with priority ordering. Registration/deregistration take write locks. Dispatch takes a read lock and copies entries to a snapshot, so callbacks can safely register/deregister other hooks without deadlock.

Lives in librentropic-core.so. Not exposed across .so boundaries — the C API in entropic.h is the only external interface.

Version
1.9.1

Definition in file hook_registry.h.