blob: e93a3f13d8fe114e327682c4d9f6c747930345d6 [file] [log] [blame]
package disruptor
import "sync/atomic"
func (this *Cursor) Store(sequence int64) {
atomic.StoreInt64(&this.sequence, sequence)
}
func (this *Cursor) Load() int64 {
return atomic.LoadInt64(&this.sequence)
}
func (this *Cursor) Read(noop int64) int64 {
return atomic.LoadInt64(&this.sequence)
}