Skip to content

Commit 8608731

Browse files
committed
signalAll
1 parent 2cf0388 commit 8608731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/gpu/src/main/java/org/elasticsearch/xpack/gpu/codec/CuVSResourceManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ protected CuVSResources createNew() {
164164
@Override
165165
public void finishedComputation(ManagedCuVSResources resources) {
166166
// currently does nothing, but could allow acquire to return possibly blocked resources
167-
// something like enoughComputationCondition.signal()?
167+
// something like enoughComputationCondition.signalAll()?
168168
}
169169

170170
@Override
@@ -173,7 +173,7 @@ public void release(ManagedCuVSResources resources) {
173173
lock.lock();
174174
assert resources.locked;
175175
resources.locked = false;
176-
enoughMemoryCondition.signal();
176+
enoughMemoryCondition.signalAll();
177177
} finally {
178178
lock.unlock();
179179
}

0 commit comments

Comments
 (0)