Merge pull request #104158 from mamil/modify-func-notes

make notes more easily to understand
This commit is contained in:
Kubernetes Prow Robot 2021-08-06 01:21:19 -07:00 committed by GitHub
commit fcefb0bc2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -585,7 +585,7 @@ func (p *PriorityQueue) AssignedPodUpdated(pod *v1.Pod) {
// MoveAllToActiveOrBackoffQueue moves all pods from unschedulableQ to activeQ or backoffQ.
// This function adds all pods and then signals the condition variable to ensure that
// if Pop() is waiting for an item, it receives it after all the pods are in the
// if Pop() is waiting for an item, it receives the signal after all the pods are in the
// queue and the head is the highest priority pod.
func (p *PriorityQueue) MoveAllToActiveOrBackoffQueue(event framework.ClusterEvent, preCheck PreEnqueueCheck) {
p.lock.Lock()