Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Ring buffer struct
type RingBuffer struct {
queue uint64
dequeue uint64
mask, disposed uint64
nodes nodes
}
type RingBuffer struct {
_padding0 [8]uint64
queue uint64
_padding1 [8]uint64
dequeue uint64
_padding2 [8]uint64
mask, disposed uint64
_padding3 [8]uint64
nodes nodes
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment