...
Run Format

Package atomic

import "runtime/internal/atomic"
Overview
Index

Overview ▾

func And8

func And8(ptr *uint8, val uint8)

go:noescape

func Cas

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

go:noescape

func Cas64

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

go:noescape

func CasRel

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

go:noescape

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

go:noescape

func Load

func Load(ptr *uint32) uint32

go:nosplit go:noinline

func Load64

func Load64(ptr *uint64) uint64

go:nosplit go:noinline

func LoadAcq

func LoadAcq(ptr *uint32) uint32

go:nosplit go:noinline

func Loadint64

func Loadint64(ptr *int64) int64

go:noescape

func Loadp

func Loadp(ptr unsafe.Pointer) unsafe.Pointer

go:nosplit go:noinline

func Loaduint

func Loaduint(ptr *uint) uint

go:noescape

func Loaduintptr

func Loaduintptr(ptr *uintptr) uintptr

go:noescape

func Or8

func Or8(ptr *uint8, val uint8)

go:noescape

func Store

func Store(ptr *uint32, val uint32)

go:noescape

func Store64

func Store64(ptr *uint64, val uint64)

go:noescape

func StoreRel

func StoreRel(ptr *uint32, val uint32)

go:noescape

func StorepNoWB

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)

go:noescape

func Xadd

func Xadd(ptr *uint32, delta int32) uint32

go:noescape

func Xadd64

func Xadd64(ptr *uint64, delta int64) uint64

go:noescape

func Xaddint64

func Xaddint64(ptr *int64, delta int64) int64

go:noescape

func Xadduintptr

func Xadduintptr(ptr *uintptr, delta uintptr) uintptr

go:noescape

func Xchg

func Xchg(ptr *uint32, new uint32) uint32

go:noescape

func Xchg64

func Xchg64(ptr *uint64, new uint64) uint64

go:noescape

func Xchguintptr

func Xchguintptr(ptr *uintptr, new uintptr) uintptr

go:noescape