Update dependencies

This commit is contained in:
bluepython508
2025-04-09 01:00:12 +01:00
parent f0641ffd6e
commit 5a9cfc022c
882 changed files with 68930 additions and 24201 deletions

View File

@@ -394,6 +394,7 @@ type Waker struct {
allWakersNext *Waker
}
// +stateify savable
type wakerState struct {
asserted bool
other *Sleeper

View File

@@ -74,7 +74,36 @@ func (w *Waker) StateLoad(ctx context.Context, stateSourceObject state.Source) {
stateSourceObject.LoadValue(0, new(wakerState), func(y any) { w.loadS(ctx, y.(wakerState)) })
}
func (w *wakerState) StateTypeName() string {
return "pkg/sleep.wakerState"
}
func (w *wakerState) StateFields() []string {
return []string{
"asserted",
"other",
}
}
func (w *wakerState) beforeSave() {}
// +checklocksignore
func (w *wakerState) StateSave(stateSinkObject state.Sink) {
w.beforeSave()
stateSinkObject.Save(0, &w.asserted)
stateSinkObject.Save(1, &w.other)
}
func (w *wakerState) afterLoad(context.Context) {}
// +checklocksignore
func (w *wakerState) StateLoad(ctx context.Context, stateSourceObject state.Source) {
stateSourceObject.Load(0, &w.asserted)
stateSourceObject.Load(1, &w.other)
}
func init() {
state.Register((*Sleeper)(nil))
state.Register((*Waker)(nil))
state.Register((*wakerState)(nil))
}