Skip to content

Commit a58986c

Browse files
shubhamdhamaclaude
andcommitted
drpcstream: rename packetQueue to ringBuffer with Enqueue/Dequeue API
Rename the type and its methods to better reflect what the structure actually is: a bounded ring buffer used as a FIFO queue. Put/Get become Enqueue/Dequeue, and the stream field is renamed from pbuf to recvQueue since to the consumer it's just a queue. This is groundwork for a follow-up that introduces a shared buffer pool. Done() has a TODO noting it will be removed once Dequeue can transfer buffer ownership directly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2b49b36 commit a58986c

6 files changed

Lines changed: 359 additions & 358 deletions

File tree

drpcstream/packet_queue.go

Lines changed: 0 additions & 115 deletions
This file was deleted.

drpcstream/packet_queue_test.go

Lines changed: 0 additions & 228 deletions
This file was deleted.

0 commit comments

Comments
 (0)