SpiecsEngine
Loading...
Searching...
No Matches
◆
UnLoad()
template<typename T >
void
Spices::ResourcePool
< T >::UnLoad
(
const std::string &
path
)
inline
static
UnLoad a resource by path.
Parameters
[in]
path
Resource
file path in disk.
Definition at line
154
of file
ResourcePool.h
.
155
{
156
SPICES_PROFILE_ZONE
;
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
}
SPICES_PROFILE_ZONE
#define SPICES_PROFILE_ZONE
Definition
TracyProfilerWrapper.h:100
Spices::ResourcePool::m_Resources
static std::unordered_map< std::string, std::unique_ptr< Resource > > m_Resources
Static variable stores all specific resources in a basic type Pool.
Definition
ResourcePool.h:104
Spices::ResourcePool::m_Mutex
static std::shared_mutex m_Mutex
Mutex for this pool.
Definition
ResourcePool.h:109
Spices
ResourcePool
Generated on Sun Mar 8 2026 10:24:49 for SpiecsEngine by
1.10.0