Repository navigation
Rename ConcurrentQueue to WaitQueue - #63
Conversation
The name WaitQueue better reflects the primary purpose of this data structure: managing tasks/nodes waiting for synchronization events. While it's technically a concurrent queue, "waiting" is what it's fundamentally used for across all use cases: - Mutex: tasks waiting for the lock - ResetEvent: tasks waiting for the event to be set - Condition: tasks waiting for a condition - AnyTaskList: tasks waiting to be processed during shutdown The dual sentinel states (for encoding binary state like locked/unlocked, set/unset, open/closed) are an implementation detail that makes the queue efficient, but the core purpose is wait queue management. Changes: - Renamed src/utils/concurrent_queue.zig → src/utils/wait_queue.zig - Renamed ConcurrentQueue(T) → WaitQueue(T) - Updated CompactConcurrentQueue reference → CompactWaitQueue - Updated all imports and usages across 11 files - Updated test names and benchmark output - All tests passing
WalkthroughReplace Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
The name WaitQueue better reflects the primary purpose of this data structure: managing tasks/nodes waiting for synchronization events. While it's technically a concurrent queue, "waiting" is what it's fundamentally used for across all use cases:
The dual sentinel states (for encoding binary state like locked/unlocked, set/unset, open/closed) are an implementation detail that makes the queue efficient, but the core purpose is wait queue management.
Changes:
Summary by CodeRabbit