hdk-grid 0.0.1
Header-only foundational library for the Hollow Development Kit.
Loading...
Searching...
No Matches
Conduit Class Reference

Generic event dispatcher template for publish-subscribe pattern. More...

Detailed Description

Generic event dispatcher template for publish-subscribe pattern.

Conduit implements a thread-safe event system where subscribers can register callbacks for events and broadcasters can trigger events. All operations are protected by a shared mutex to ensure thread safety.

Template Parameters
ArgTypesThe argument types passed to callbacks when the event is triggered

Key features:

  • Thread-safe callback management and invocation
  • RAII subscription lifetime management via Tap objects
  • Lightweight ID-based subscription tracking
  • Efficient callback invocation without holding locks
Note
All callbacks must have void return type
Callbacks should not throw exceptions (undefined behavior if they do)

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