SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Destroy()

template<typename T >
void Spices::ResourcePool< T >::Destroy ( )
inlinestatic

Destroy this resource pool. Release all Resource Pointer, which means resource can be destructed after called this API.

Definition at line 193 of file ResourcePool.h.

194 {
196
197 std::unique_lock<std::shared_mutex> lock(m_Mutex);
198
199 m_Resources.clear();
200 }
#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.