frostfs-qos/scheduling/stat.go
Dmitrii Stepanov 25102d1e1a
All checks were successful
Vulncheck / Vulncheck (push) Successful in 33s
Pre-commit hooks / Pre-commit (push) Successful in 1m17s
Tests and linters / Tests (push) Successful in 1m16s
Tests and linters / Run gofumpt (push) Successful in 1m16s
Tests and linters / gopls check (push) Successful in 1m18s
Tests and linters / Lint (push) Successful in 1m28s
Tests and linters / Staticcheck (push) Successful in 1m24s
Tests and linters / Tests with -race (push) Successful in 1m41s
[#7] mclock: Add tag stat
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-27 07:29:15 +00:00

20 lines
303 B
Go

package scheduling
import "sync/atomic"
type Stat struct {
tag string
inProgress, pending atomic.Uint64
}
func (s *Stat) Tag() string {
return s.tag
}
func (s *Stat) InProgress() uint64 {
return s.inProgress.Load()
}
func (s *Stat) Pending() uint64 {
return s.pending.Load()
}