atomic

package
v0.0.0-...-3d984ba Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package atomic provides low-level atomic memory primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInt

func AddInt(addr *int, delta int) (new int)

func AddUint32

func AddUint32(addr *uint32, delta uint32) (new uint32)

func AddUintptr

func AddUintptr(addr *uintptr, delta uintptr) (new uintptr)

func AndUint32

func AndUint32(addr *uint32, mask uint32) (new uint32)

func AndUintptr

func AndUintptr(addr *uintptr, mask uintptr) (new uintptr)

func CompareAndSwapInt

func CompareAndSwapInt(addr *int, old, new int) (swapped bool)

func CompareAndSwapPointer

func CompareAndSwapPointer(addr *unsafe.Pointer, old, new unsafe.Pointer) (swapped bool)

func CompareAndSwapUint32

func CompareAndSwapUint32(addr *uint32, old, new uint32) (swapped bool)

func CompareAndSwapUintptr

func CompareAndSwapUintptr(addr *uintptr, old, new uintptr) (swapped bool)

func LoadInt

func LoadInt(addr *int) int

func LoadPointer

func LoadPointer(addr *unsafe.Pointer) unsafe.Pointer

func LoadUint32

func LoadUint32(addr *uint32) uint32

func LoadUintptr

func LoadUintptr(addr *uintptr) uintptr

func OrUint32

func OrUint32(addr *uint32, mask uint32) (new uint32)

func OrUintptr

func OrUintptr(addr *uintptr, mask uintptr) (new uintptr)

func StoreInt

func StoreInt(addr *int, val int)

func StorePointer

func StorePointer(addr *unsafe.Pointer, val unsafe.Pointer)

func StoreUint32

func StoreUint32(addr *uint32, val uint32)

func StoreUintptr

func StoreUintptr(addr *uintptr, val uintptr)

func SwapInt

func SwapInt(addr *int, new int) (old int)

func SwapPointer

func SwapPointer(addr *unsafe.Pointer, new unsafe.Pointer) (old unsafe.Pointer)

func SwapUint32

func SwapUint32(addr *uint32, new uint32) (old uint32)

func SwapUintptr

func SwapUintptr(addr *uintptr, new uintptr) (old uintptr)

func XorUint32

func XorUint32(addr *uint32, mask uint32) (new uint32)

func XorUintptr

func XorUintptr(addr *uintptr, mask uintptr) (new uintptr)

Types

This section is empty.

Jump to

Keyboard shortcuts

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