Struct ThreadSafeEntityCache::AppDependenciesSnapshot
Defined in File thread_safe_entity_cache.hpp
Nested Relationships
This struct is a nested type of Class ThreadSafeEntityCache.
Struct Documentation
-
struct AppDependenciesSnapshot
Atomic snapshot of an App together with its declared
depends_onapps.handle_app_depends_oniteratesapp.depends_onand resolves each id viaget_app()- one shared_lock per dependency. A writer refresh can land between the app fetch and any of the per-dependency fetches, so a 5-dependency app can return 5 apps from 5 different cache generations. This helper takes a single shared_lock and returns the app together with every dependency resolved in the same generation.appis empty ifapp_idis not in the cache.dependencieslists every entry inapp->depends_onin declaration order; the optional is empty when the referenced dependency cannot be resolved (broken ref).