use memory poll for streaming

This commit is contained in:
orignal 2017-01-10 21:31:52 -05:00
parent feab95ce4b
commit 7ea0249e6e
3 changed files with 26 additions and 19 deletions

3
util.h
View file

@ -58,8 +58,9 @@ namespace util
void Release (T * t)
{
if (!t) return;
t->~T ();
*(void * *)t = m_Head;
*(void * *)t = m_Head; // next
m_Head = t;
}