Sign in
fuchsia
/
third_party
/
github.com
/
smartystreets
/
go-disruptor
/
83fc6f27bc38799995db41e72de65a4e472f7ea1
/
.
/
cursor.go
blob: ac950f51649fdfee802d7a648aba5627383e9581 [
file
] [
log
] [
blame
]
package disruptor
const (
InitialSequenceValue int64 = -1
cpuCacheLinePadding = 7
)
type Cursor struct {
sequence int64
padding [cpuCacheLinePadding]int64
}
func NewCursor() *Cursor {
return &Cursor{sequence: InitialSequenceValue}
}