Last active
February 24, 2016 00:27
-
-
Save tylertreat/02aebad09e852fbbb189 to your computer and use it in GitHub Desktop.
Ring buffer struct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type RingBuffer struct { | |
queue uint64 | |
dequeue uint64 | |
mask, disposed uint64 | |
nodes nodes | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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