func main() { var someval atomic.AlignedInt64 atomic.StoreInt64(&someval, int64(512)) fmt.Printf(" Value of someval %v", someval) rval := atomic.LoadInt64(&someval) fmt.Printf(" Returned val %v", rval) }
func (this *Server) PlusServicers() int { return int(atomic.LoadInt64(&this.plusServicers)) }
func (this *Server) RequestSizeCap() int { return int(atomic.LoadInt64(&this.requestSize)) }
func (this *Server) MaxParallelism() int { return int(atomic.LoadInt64(&this.maxParallelism)) }
func (this *Server) KeepAlive() int { return int(atomic.LoadInt64(&this.keepAlive)) }
func GetPipelineCap() int64 { return atomic.LoadInt64(&pipelineCap) }
func GetScanCap() int64 { return atomic.LoadInt64(&scanCap) }