package
Version:
v0.0.0-...-4bf4b70
Opens a new window with list of versions in this module.
Published: Jan 24, 2021
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package atomicbitops provides extensions to the sync/atomic package.
All read-modify-write operations implemented by this package have
acquire-release memory ordering (like sync/atomic).
-
func AndUint32(addr *uint32, val uint32)
-
func AndUint64(addr *uint64, val uint64)
-
func CompareAndSwapUint32(addr *uint32, old, new uint32) uint32
-
func CompareAndSwapUint64(addr *uint64, old, new uint64) uint64
-
func OrUint32(addr *uint32, val uint32)
-
func OrUint64(addr *uint64, val uint64)
-
func XorUint32(addr *uint32, val uint32)
-
func XorUint64(addr *uint64, val uint64)
AndUint32 atomically applies bitwise AND operation to *addr with val.
AndUint64 atomically applies bitwise AND operation to *addr with val.
CompareAndSwapUint32 is like sync/atomic.CompareAndSwapUint32, but returns
the value previously stored at addr.
CompareAndSwapUint64 is like sync/atomic.CompareAndSwapUint64, but returns
the value previously stored at addr.
OrUint32 atomically applies bitwise OR operation to *addr with val.
OrUint64 atomically applies bitwise OR operation to *addr with val.
XorUint32 atomically applies bitwise XOR operation to *addr with val.
XorUint64 atomically applies bitwise XOR operation to *addr with val.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.