summaryrefslogtreecommitdiff
path: root/pkg/worker/state.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-14 13:20:27 +0300
committerGitHub <[email protected]>2021-06-14 13:20:27 +0300
commitdc8ed203c247afd684f198ebbac103a10bfad72a (patch)
treea18f26274ffce32a0b29c479a3692dc1fe822415 /pkg/worker/state.go
parent54c3553cc39df4eae92d1f2c8c428e625f32f41a (diff)
parent128d71cad43ffcaab60cb60939584df0941f37be (diff)
#722 feat(opt): `inuse_space` and `runtime.newobject` optimizations
#722 feat(opt): `inuse_space` and `runtime.newobject` optimizations
Diffstat (limited to 'pkg/worker/state.go')
-rwxr-xr-xpkg/worker/state.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/worker/state.go b/pkg/worker/state.go
index 9c4543c8..bf152e8b 100755
--- a/pkg/worker/state.go
+++ b/pkg/worker/state.go
@@ -44,7 +44,7 @@ type StateImpl struct {
lastUsed uint64
}
-// Thread safe
+// NewWorkerState initializes a state for the sync.Worker
func NewWorkerState(value int64) *StateImpl {
return &StateImpl{value: value}
}