morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::bridge::AllowShared Struct Reference

BridgeHandler sharing policy: joins the shared instance directory. More...

#include <bridge.hpp>

Detailed Description

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.


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