type sync/atomic.Pointer
22 uses
sync/atomic (current package)
type.go#L40: var _ = &Pointer[int]{}
type.go#L43: type Pointer[T any] struct {
type.go#L54: func (x *Pointer[T]) Load() *T { return (*T)(LoadPointer(&x.v)) }
type.go#L57: func (x *Pointer[T]) Store(val *T) { StorePointer(&x.v, unsafe.Pointer(val)) }
type.go#L60: func (x *Pointer[T]) Swap(new *T) (old *T) { return (*T)(SwapPointer(&x.v, unsafe.Pointer(new))) }
type.go#L63: func (x *Pointer[T]) CompareAndSwap(old, new *T) (swapped bool) {
sync
map.go#L50: read atomic.Pointer[readOnly]
map.go#L104: p atomic.Pointer[any]
poolqueue.go#L201: tail atomic.Pointer[poolChainElt]
poolqueue.go#L217: next, prev atomic.Pointer[poolChainElt]
internal/bisect
bisect.go#L313: dedup atomic.Pointer[dedup]
internal/concurrent
hashtriemap.go#L75: var slot *atomic.Pointer[node[K, V]]
hashtriemap.go#L188: var slot *atomic.Pointer[node[K, V]]
hashtriemap.go#L323: children [nChildren]atomic.Pointer[node[K, V]]
hashtriemap.go#L343: overflow atomic.Pointer[entry[K, V]] // Overflow for hash collisions.
internal/godebug
godebug.go#L68: value atomic.Pointer[value]
log
log.go#L61: prefix atomic.Pointer[string] // prefix on each line to identify the logger (but see Lmsgprefix)
math/rand
rand.go#L312: var globalRandGenerator atomic.Pointer[Rand]
net
dnsclient_unix.go#L362: dnsConfig atomic.Pointer[dnsConfig] // parsed resolv.conf structure used in lookups
net/http
server.go#L297: curReq atomic.Pointer[response] // (which has a Request in it)
os
file_unix.go#L62: dirinfo atomic.Pointer[dirInfo] // nil unless directory being read
syscall
rlimit.go#L14: var origRlimitNofile atomic.Pointer[Rlimit]
![]() |
The pages are generated with Golds v0.7.6. (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. |