atomic

package
v1.1.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package atomic 封装基础数据类型的原子操作。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int64

type Int64 struct {
	// contains filtered or unexported fields
}

func (*Int64) Add

func (c *Int64) Add(delta int64) int64

Add wrapper for atomic.AddInt64.

func (*Int64) CompareAndSwap

func (c *Int64) CompareAndSwap(old, new int64) bool

CompareAndSwap wrapper for atomic.CompareAndSwapInt64.

func (*Int64) Load

func (c *Int64) Load() int64

Load wrapper for atomic.LoadInt64.

func (*Int64) Store

func (c *Int64) Store(v int64)

Store wrapper for atomic.StoreInt64.

func (*Int64) Swap

func (c *Int64) Swap(new int64) int64

Swap wrapper for atomic.SwapInt64.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL