SpiecsEngine
 
Loading...
Searching...
No Matches

◆ UnLoad()

template<typename T >
void Spices::ResourcePool< T >::UnLoad ( const std::string & path)
inlinestatic

UnLoad a resource by path.

Parameters
[in]pathResource file path in disk.

Definition at line 154 of file ResourcePool.h.

155 {
157
158 std::unique_lock<std::shared_mutex> lock(m_Mutex);
159
160 if (m_Resources.find(path) != m_Resources.end())
161 {
162 m_Resources.erase(path);
163 }
164 }
#define SPICES_PROFILE_ZONE
static std::unordered_map< std::string, std::unique_ptr< Resource > > m_Resources
Static variable stores all specific resources in a basic type Pool.
static std::shared_mutex m_Mutex
Mutex for this pool.