Add ref method

This commit is contained in:
mcrcortex
2024-02-20 12:34:18 +10:00
parent 81e2acb995
commit 4bb0474f4d

View File

@@ -46,6 +46,10 @@ public final class WorldSection {
return state>>1;
}
public int getRefCount() {
return this.atomicState.get()>>1;
}
public int release() {
int state = this.atomicState.addAndGet(-2);
if (state < 1) {