fix RingBuffer naming

This commit is contained in:
Schluffe
2026-08-24 22:28:58 +02:00
parent 13d462fc43
commit ad3f63424d
2 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -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;
}