add helper

This commit is contained in:
Hannes Janetzek 2013-01-11 20:06:45 +01:00
parent a9f5525c50
commit 9a86b6b134

View File

@ -29,14 +29,14 @@ public class VertexPool {
pool = null;
}
// public static VertexPoolItem get(VertexPoolItem prev) {
// VertexPoolItem it = get();
// if (prev != null) {
// prev.next = it;
// prev.used = VertexPoolItem.SIZE;
// }
// return it;
// }
public static VertexPoolItem getNext(VertexPoolItem prev) {
VertexPoolItem it = get();
if (prev != null) {
prev.next = it;
prev.used = VertexPoolItem.SIZE;
}
return it;
}
public static synchronized VertexPoolItem get() {