fix RingBuffer naming
This commit is contained in:
@@ -26,9 +26,9 @@ export function createRingBuffer<T extends object>(
|
||||
};
|
||||
}
|
||||
|
||||
export function claim<T>(pooled: Pooled<T>): T {
|
||||
const slot = pooled.buffer[pooled.cursor];
|
||||
pooled.cursor = (pooled.cursor + 1) & pooled.mask;
|
||||
export function claim<T>(ring: Pooled<T>): T {
|
||||
const slot = ring.buffer[ring.cursor];
|
||||
ring.cursor = (ring.cursor + 1) & ring.mask;
|
||||
|
||||
return slot;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user