Skip to content

Instantly share code, notes, and snippets.

@tylertreat
Last active February 24, 2016 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylertreat/02aebad09e852fbbb189 to your computer and use it in GitHub Desktop.
Save tylertreat/02aebad09e852fbbb189 to your computer and use it in GitHub Desktop.
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