1
2
3
4
5
6
7 package atomic
8
9 import "unsafe"
10
11
12 func Xadd(ptr *uint32, delta int32) uint32
13
14
15 func Xadd64(ptr *uint64, delta int64) uint64
16
17
18 func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
19
20
21 func Xchg(ptr *uint32, new uint32) uint32
22
23
24 func Xchg64(ptr *uint64, new uint64) uint64
25
26
27 func Xchguintptr(ptr *uintptr, new uintptr) uintptr
28
29
30 func Load(ptr *uint32) uint32
31
32
33 func Load8(ptr *uint8) uint8
34
35
36 func Load64(ptr *uint64) uint64
37
38
39 func Loadp(ptr unsafe.Pointer) unsafe.Pointer
40
41
42 func LoadAcq(ptr *uint32) uint32
43
44
45 func LoadAcq64(ptr *uint64) uint64
46
47
48 func LoadAcquintptr(ptr *uintptr) uintptr
49
50
51 func And8(ptr *uint8, val uint8)
52
53
54 func Or8(ptr *uint8, val uint8)
55
56
57
58
59 func And(ptr *uint32, val uint32)
60
61
62 func Or(ptr *uint32, val uint32)
63
64
65 func Cas64(ptr *uint64, old, new uint64) bool
66
67
68 func CasRel(ptr *uint32, old, new uint32) bool
69
70
71 func Store(ptr *uint32, val uint32)
72
73
74 func Store8(ptr *uint8, val uint8)
75
76
77 func Store64(ptr *uint64, val uint64)
78
79
80 func StorepNoWB(ptr unsafe.Pointer, val unsafe.Pointer)
81
82
83 func StoreRel(ptr *uint32, val uint32)
84
85
86 func StoreRel64(ptr *uint64, val uint64)
87
88
89 func StoreReluintptr(ptr *uintptr, val uintptr)
90
View as plain text