blob: a084f4c57150fde642f6d913239f9fd3b15d176f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
// automatically generated by stateify.
// +build !arm,!mips,!386
package atomicbitops
import (
"gvisor.dev/gvisor/pkg/state"
)
func (aa *AlignedAtomicInt64) StateTypeName() string {
return "pkg/atomicbitops.AlignedAtomicInt64"
}
func (aa *AlignedAtomicInt64) StateFields() []string {
return []string{
"value",
}
}
func (aa *AlignedAtomicInt64) beforeSave() {}
// +checklocksignore
func (aa *AlignedAtomicInt64) StateSave(stateSinkObject state.Sink) {
aa.beforeSave()
stateSinkObject.Save(0, &aa.value)
}
func (aa *AlignedAtomicInt64) afterLoad() {}
// +checklocksignore
func (aa *AlignedAtomicInt64) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &aa.value)
}
func (aa *AlignedAtomicUint64) StateTypeName() string {
return "pkg/atomicbitops.AlignedAtomicUint64"
}
func (aa *AlignedAtomicUint64) StateFields() []string {
return []string{
"value",
}
}
func (aa *AlignedAtomicUint64) beforeSave() {}
// +checklocksignore
func (aa *AlignedAtomicUint64) StateSave(stateSinkObject state.Sink) {
aa.beforeSave()
stateSinkObject.Save(0, &aa.value)
}
func (aa *AlignedAtomicUint64) afterLoad() {}
// +checklocksignore
func (aa *AlignedAtomicUint64) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &aa.value)
}
func init() {
state.Register((*AlignedAtomicInt64)(nil))
state.Register((*AlignedAtomicUint64)(nil))
}
|