atomic

package standard library
go1.17.4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And added in go1.16

func And(ptr *uint32, val uint32)

func And8

func And8(ptr *uint8, val uint8)

func Cas

func Cas(ptr *uint32, old, new uint32) bool

func Cas64

func Cas64(ptr *uint64, old, new uint64) bool

func CasRel added in go1.12

func CasRel(ptr *uint32, old, new uint32) bool

func Casint32 added in go1.17

func Casint32(ptr *int32, old, new int32) bool

func Casint64 added in go1.17

func Casint64(ptr *int64, old, new int64) bool

func Casp1

func Casp1(ptr *unsafe.Pointer, old, new unsafe.Pointer) bool

NO go:noescape annotation; see atomic_pointer.go.

func Casuintptr

func Casuintptr(ptr *uintptr, old, new uintptr) bool

func Load

func Load(ptr *uint32) uint32

func Load64

func Load64(ptr *uint64) uint64

func Load8 added in go1.13

func Load8(ptr *uint8) uint8

func LoadAcq added in go1.12

func LoadAcq(ptr *uint32) uint32

func LoadAcq64 added in go1.16

func LoadAcq64(ptr *uint64) uint64

func LoadAcquintptr added in go1.16

func LoadAcquintptr(ptr *uintptr) uintptr

func Loadint32 added in go1.17

func Loadint32(ptr *int32) int32

func Loadint64

func Loadint64(ptr *int64) int64

func Loadp

func Loadp(ptr unsafe.Pointer) unsafe.Pointer

func Loaduint

func Loaduint(ptr *uint) uint

func Loaduintptr

func Loaduintptr(ptr *uintptr) uintptr

func Or added in go1.16

func Or(ptr *uint32, val uint32)

func Or8

func Or8(ptr *uint8, val uint8)

func Store

func Store(ptr *uint32, val uint32)

func Store64

func Store64(ptr *uint64, val uint64)

func Store8 added in go1.14

func Store8(ptr *uint8, val uint8)

func StoreRel added in go1.12

func StoreRel(ptr *uint32, val uint32)

func StoreRel64 added in go1.16

func StoreRel64(ptr *uint64, val uint64)

func StoreReluintptr added in go1.16

func StoreReluintptr(ptr *uintptr, val uintptr)

func Storeint32 added in go1.17

func Storeint32(ptr *int32, new int32)

func Storeint64 added in go1.17

func Storeint64(ptr *int64, new int64)

func StorepNoWB added in go1.7

func StorepNoWB(ptr unsafe.Pointer, val unsafe.Pointer)

StorepNoWB performs *ptr = val atomically and without a write barrier.

NO go:noescape annotation; see atomic_pointer.go.

func Storeuintptr

func Storeuintptr(ptr *uintptr, new uintptr)

func Xadd

func Xadd(ptr *uint32, delta int32) uint32

func Xadd64

func Xadd64(ptr *uint64, delta int64) uint64

func Xaddint32 added in go1.17

func Xaddint32(ptr *int32, delta int32) int32

func Xaddint64

func Xaddint64(ptr *int64, delta int64) int64

func Xadduintptr

func Xadduintptr(ptr *uintptr, delta uintptr) uintptr

func Xchg

func Xchg(ptr *uint32, new uint32) uint32

func Xchg64

func Xchg64(ptr *uint64, new uint64) uint64

func Xchgint32 added in go1.17

func Xchgint32(ptr *int32, new int32) int32

func Xchgint64 added in go1.17

func Xchgint64(ptr *int64, new int64) int64

func Xchguintptr

func Xchguintptr(ptr *uintptr, new uintptr) uintptr

Types

This section is empty.

Jump to

Keyboard shortcuts

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