agent/taskresource/cgroup/cgroup.go
func (cgroup *CgroupResource) SetKnownStatus(status resourcestatus.ResourceStatus) {
	cgroup.lock.Lock()
	defer cgroup.lock.Unlock()

	cgroup.knownStatusUnsafe = status
	cgroup.updateAppliedStatusUnsafe(status)
}
func (cgroup *CgroupResource) SetKnownStatus(status resourcestatus.ResourceStatus) {
	cgroup.lock.Lock()
	defer cgroup.lock.Unlock()

	cgroup.knownStatusUnsafe = status
	cgroup.updateAppliedStatusUnsafe(status)
}
func ( cgroup * CgroupResource ) SetKnownStatus ( status resourcestatus . ResourceStatus ) { cgroup . lock . Lock ( ) defer cgroup . lock . Unlock ( ) cgroup . knownStatusUnsafe = status cgroup . updateAppliedStatusUnsafe ( status ) }
// SetKnownStatus safely sets the currently known status of the resource
SetKnownStatus safely sets the currently known status of the resource