mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
use memory poll for streaming
This commit is contained in:
parent
feab95ce4b
commit
7ea0249e6e
3 changed files with 26 additions and 19 deletions
3
util.h
3
util.h
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue