SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ThreadDelete()

template<typename T >
void Spices::ObjectPool< T >::ThreadDelete ( T * obj)
inline

Thread Safe Version of Delete.

Parameters
[in]objObject to be free.

Definition at line 263 of file ObjectPool.h.

264 {
265 std::unique_lock<std::mutex> lock(m_Mutex);
266
267 Delete(obj);
268 }
std::mutex m_Mutex
Mutex for thread safety.
Definition ObjectPool.h:138
void Delete(T *obj)
Free a obj of T.
Definition ObjectPool.h:233

References Spices::ObjectPool< T >::Delete().