Source File
doc_64.go
Belonging Package
sync/atomic
// Copyright 2023 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.//go:build !(386 || arm || mips || mipsle)package atomic// SwapInt64 atomically stores new into *addr and returns the previous *addr value.// Consider using the more ergonomic and less error-prone [Int64.Swap] instead// (particularly if you target 32-bit platforms; see the bugs section).////go:noescapefunc ( *int64, int64) ( int64)// SwapUint64 atomically stores new into *addr and returns the previous *addr value.// Consider using the more ergonomic and less error-prone [Uint64.Swap] instead// (particularly if you target 32-bit platforms; see the bugs section).////go:noescapefunc ( *uint64, uint64) ( uint64)// CompareAndSwapInt64 executes the compare-and-swap operation for an int64 value.// Consider using the more ergonomic and less error-prone [Int64.CompareAndSwap] instead// (particularly if you target 32-bit platforms; see the bugs section).////go:noescapefunc ( *int64, , int64) ( bool)// CompareAndSwapUint64 executes the compare-and-swap operation for a uint64 value.// Consider using the more ergonomic and less error-prone [Uint64.CompareAndSwap] instead// (particularly if you target 32-bit platforms; see the bugs section).////go:noescapefunc ( *uint64, , uint64) ( bool)// AddInt64 atomically adds delta to *addr and returns the new value.// Consider using the more ergonomic and less error-prone [Int64.Add] instead// (particularly if you target 32-bit platforms; see the bugs section).////go:noescapefunc ( *int64, int64) ( int64)// AddUint64 atomically adds delta to *addr and returns the new value.// To subtract a signed positive constant value c from x, do AddUint64(&x, ^uint64(c-1)).// In particular, to decrement x, do AddUint64(&x, ^uint64(0)).// Consider using the more ergonomic and less error-prone [Uint64.Add] instead// (particularly if you target 32-bit platforms; see the bugs section).////go:noescapefunc ( *uint64, uint64) ( uint64)// AndInt64 atomically performs a bitwise AND operation on *addr using the bitmask provided as mask// and returns the old value.// Consider using the more ergonomic and less error-prone [Int64.And] instead.////go:noescapefunc ( *int64, int64) ( int64)// AndUint64 atomically performs a bitwise AND operation on *addr using the bitmask provided as mask// and returns the old.// Consider using the more ergonomic and less error-prone [Uint64.And] instead.////go:noescapefunc ( *uint64, uint64) ( uint64)// OrInt64 atomically performs a bitwise OR operation on *addr using the bitmask provided as mask// and returns the old value.// Consider using the more ergonomic and less error-prone [Int64.Or] instead.////go:noescapefunc ( *int64, int64) ( int64)// OrUint64 atomically performs a bitwise OR operation on *addr using the bitmask provided as mask// and returns the old value.// Consider using the more ergonomic and less error-prone [Uint64.Or] instead.////go:noescapefunc ( *uint64, uint64) ( uint64)// LoadInt64 atomically loads *addr.// Consider using the more ergonomic and less error-prone [Int64.Load] instead// (particularly if you target 32-bit platforms; see the bugs section).////go:noescapefunc ( *int64) ( int64)// LoadUint64 atomically loads *addr.// Consider using the more ergonomic and less error-prone [Uint64.Load] instead// (particularly if you target 32-bit platforms; see the bugs section).////go:noescapefunc ( *uint64) ( uint64)// StoreInt64 atomically stores val into *addr.// Consider using the more ergonomic and less error-prone [Int64.Store] instead// (particularly if you target 32-bit platforms; see the bugs section).////go:noescapefunc ( *int64, int64)// StoreUint64 atomically stores val into *addr.// Consider using the more ergonomic and less error-prone [Uint64.Store] instead// (particularly if you target 32-bit platforms; see the bugs section).////go:noescapefunc ( *uint64, uint64)
![]() |
The pages are generated with Golds v0.7.9-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |