carb::resetCachedInterface

Defined in carb/InterfaceUtils.h

template<typename InterfaceT, const char *PluginName = nullptr>
inline void carb::resetCachedInterface()

Resets any previously-cached interface of the given type and allows it to be acquired again.

Note

This does NOT release the interface as if Framework::releaseInterface() were called. It merely resets the cached state so that getCachedInterface() will call Framework::tryAcquireInterface() again.

Template Parameters
  • InterfaceT – The type of interface class to evict from cache.

  • PluginName – The name of a specific plugin that is cached. Note: this must be a global char array or nullptr.