|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
BridgeHandler sharing policy: joins the shared instance directory. More...
#include <bridge.hpp>
BridgeHandler sharing policy: joins the shared instance directory.
A shared handler registers nothing at construction. It acquires an instance the first time a keyed action or an explicit attach() names a primary key, and every other AllowShared handler naming that same key — in this process or, for a remote backend, in any other client — reaches the same instance. Releasing the last such handler destroys it.
A shared handler that only ever runs keyless actions never attaches, and its execute fails fast with "handler not bound": there is no instance to run against and inventing a private one would silently defeat the sharing the caller asked for. Attach first — see docs/spec/core/shared_instances.md.
Definition at line 2563 of file bridge.hpp.