acquire shared

pull/781/head
orignal 7 years ago
parent a25ce2296a
commit 3a8c90c0d4

@ -72,6 +72,12 @@ namespace util
std::bind (&MemoryPool<T>::Release, this, std::placeholders::_1));
}
template<typename... TArgs>
std::shared_ptr<T> AcquireShared (TArgs&&... args)
{
return std::shared_ptr<T>(Acquire (args...), std::bind (&MemoryPool<T>::Release, this, std::placeholders::_1));
}
protected:
T * m_Head;

Loading…
Cancel
Save