Thread Safe Version of New.
- Returns
- Returns T pointer.
Definition at line 255 of file ObjectPool.h.
256 {
257 std::unique_lock<std::mutex> lock(
m_Mutex);
258
260 }
std::mutex m_Mutex
Mutex for thread safety.
T * New()
Alloc a memory block to store T.
References Spices::ObjectPool< T >::New().