...
1
2
3
4
5
6
7 package atomic
8
9 import "unsafe"
10
11
12 func Cas(ptr *uint32, old, new uint32) bool
13
14
15 func Casp1(ptr *unsafe.Pointer, old, new unsafe.Pointer) bool
16
17
18 func Casint32(ptr *int32, old, new int32) bool
19
20
21 func Casint64(ptr *int64, old, new int64) bool
22
23
24 func Casuintptr(ptr *uintptr, old, new uintptr) bool
25
26
27 func Storeint32(ptr *int32, new int32)
28
29
30 func Storeint64(ptr *int64, new int64)
31
32
33 func Storeuintptr(ptr *uintptr, new uintptr)
34
35
36 func Loaduintptr(ptr *uintptr) uintptr
37
38
39 func Loaduint(ptr *uint) uint
40
41
42
43
44 func Loadint32(ptr *int32) int32
45
46
47 func Loadint64(ptr *int64) int64
48
49
50 func Xaddint32(ptr *int32, delta int32) int32
51
52
53 func Xaddint64(ptr *int64, delta int64) int64
54
55
56 func Xchgint32(ptr *int32, new int32) int32
57
58
59 func Xchgint64(ptr *int64, new int64) int64
60
View as plain text