You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above method is in the InternalResourceGroup class,i think this judge mehod with (!queuedQueries.isEmpty() || !eligibleSubGroups.isEmpty()) incorrectly, and it should be ( queuedQueries.isEmpty() || !eligibleSubGroups.isEmpty() ) !
Please let me know if you can have a better explanation of the judgment method in the existing code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
private boolean isEligibleToStartNext() { checkState(Thread.holdsLock(root), "Must hold lock"); synchronized (root) { if (!canRunMore()) { return false; } return !queuedQueries.isEmpty() || !eligibleSubGroups.isEmpty(); } }
The above method is in the InternalResourceGroup class,i think this judge mehod with (!queuedQueries.isEmpty() || !eligibleSubGroups.isEmpty()) incorrectly, and it should be ( queuedQueries.isEmpty() || !eligibleSubGroups.isEmpty() ) !
Please let me know if you can have a better explanation of the judgment method in the existing code.
Beta Was this translation helpful? Give feedback.
All reactions