Last active
February 12, 2022 00:15
-
-
Save rueian/e5f5551c3b30477d519855ac2204992e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ring struct { | |
| _ [8]uint64 // padding to reduce false sharing | |
| write uint64 | |
| _ [7]uint64 | |
| read1 uint64 | |
| _ [7]uint64 | |
| read2 uint64 | |
| _ [7]uint64 | |
| slots [1024]slot | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment