Struct ThreadSafeEntityCache::AppLinksSnapshot
Defined in File thread_safe_entity_cache.hpp
Nested Relationships
This struct is a nested type of Class ThreadSafeEntityCache.
Struct Documentation
-
struct AppLinksSnapshot
Atomic snapshot of an App together with its parent Component and Area.
Three sequential get_app/get_component/get_area calls each acquire a fresh shared_lock and a writer refresh can advance the generation between them, so handlers that traverse App -> Component -> Area can observe a mixed-generation view (e.g. app from gen N, component from N+1, area from N). This helper resolves the chain under a single shared_lock so the result is internally consistent.
appis empty ifapp_idis not in the cache.componentis empty if the app has nocomponent_idor the referenced component is missing.areais empty if the component has noareaor the referenced area is missing. The two latter cases are distinguishable from “no parent” becauseapp.component_id/component.arearemain set on the returned models.