MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ has_service()

template<typename Interface >
bool MayaFlux::Registry::BackendRegistry::has_service ( ) const
inline

Check if a service is available.

Template Parameters
InterfaceThe service interface type to check
Returns
True if service is currently registered

Thread-safe. Useful for capability detection without error handling. Note: Service availability can change between has_service() and get_service() calls due to concurrent unregistration.

Example: if (registry.has_service<IComputeService>()) { // Compute shaders available }

Definition at line 140 of file BackendRegistry.hpp.

141 {
142 std::shared_lock lock(m_mutex);
143 return m_services.contains(typeid(Interface));
144 }
std::unordered_map< ServiceId, ServiceFactory > m_services