code: func (cgroup *CgroupResource) SetAppliedStatus(status resourcestatus.ResourceStatus) bool {
  	cgroup.lock.Lock()
  	defer cgroup.lock.Unlock()
  
  	if cgroup.appliedStatus != resourcestatus.ResourceStatus(CgroupStatusNone) {
  		// return false to indicate the set operation failed
  		return false
  	}
  
  	cgroup.appliedStatus = status
  	return true
  }
docs: // SetAppliedStatus sets the applied status of resource and returns whether
  // the resource is already in a transition