Skip to content

Engine → Core

event.h

A multicast callback list. Handlers run synchronously on the emitting thread in subscription order. Movable (subscriptions follow the moved state), not copyable, and not thread-safe.

Structs

File Description
event::slot

Classes

File Description
detail::subscription_target What an event_subscription talks to. Events implement it through their shared state so a subscription outliving its event finds the state gone and becomes inert.
event A multicast callback list. Handlers run synchronously on the emitting thread in subscription order. Movable (subscriptions follow the moved state), not copyable, and not thread-safe.
event::state
event_subscription Owns one subscription to an event (or an event_bus channel). Move-only; destroying or releasing it unsubscribes. When the event is destroyed first the subscription becomes inert and release() is a no-op.

Type Aliases

event::handler_type

using handler_type = std::function<void(Args...)>;