This commit is contained in:
Tatsuhiro Tsujikawa 2015-10-03 19:14:41 +09:00
parent e95b39d534
commit 49573e0aa2
1 changed files with 1 additions and 5 deletions

View File

@ -71,11 +71,7 @@ template <typename T> struct Pool {
return pool.get(); return pool.get();
} }
void recycle(T *m) { void recycle(T *m) {
if (freelist) { m->next = freelist;
m->next = freelist;
} else {
m->next = nullptr;
}
freelist = m; freelist = m;
} }
void clear() { void clear() {