Class Context
Defined in File action-context.h
Class Documentation
-
class Context
Declaration:
finalOne requested action namespace.
Move/reset/destruction require exclusive access to this handle, on any thread. Removal takes effect at the next poll; previously published ticks/views retain their own state. A valid lease is an accepted request, not proof that a poll has installed its mappings.
Public Functions
-
Context() = default
Create an empty lease with false bool and identity 0.
-
~Context()
Mark this context for removal at the next poll; never rewrite already retained snapshots/ticks.
-
Context(Context &&other) noexcept
Transfer the accepted request; the source becomes empty.
Serialize access to both handles.
-
Context &operator=(Context &&other) noexcept
Release the destination request for next-poll removal, then transfer other; no published history is changed.
-
void reset() noexcept
Idempotently request removal and empty this handle.
May run on any producer with exclusive access; detached held buttons publish release and axes zero at a later poll.
-
Context() = default