add helper
This commit is contained in:
parent
a9f5525c50
commit
9a86b6b134
@ -29,14 +29,14 @@ public class VertexPool {
|
|||||||
pool = null;
|
pool = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// public static VertexPoolItem get(VertexPoolItem prev) {
|
public static VertexPoolItem getNext(VertexPoolItem prev) {
|
||||||
// VertexPoolItem it = get();
|
VertexPoolItem it = get();
|
||||||
// if (prev != null) {
|
if (prev != null) {
|
||||||
// prev.next = it;
|
prev.next = it;
|
||||||
// prev.used = VertexPoolItem.SIZE;
|
prev.used = VertexPoolItem.SIZE;
|
||||||
// }
|
}
|
||||||
// return it;
|
return it;
|
||||||
// }
|
}
|
||||||
|
|
||||||
public static synchronized VertexPoolItem get() {
|
public static synchronized VertexPoolItem get() {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user