Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
j_seigh
4 months ago
|
parent
|
context
|
favorite
| on:
Put a ring on it: a lock-free MPMC ring buffer
I did a lock-free MPMC ring buffer with 1 128 bit CAS and 1 64 bit CAS for enqueue and 1 64 bit CAS for dequeue. The payload is an unrestricted uintptr_t (64 bit) value so no way to avoid the 128 bit CAS in the enqueue.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: