Skip to content
Snippets Groups Projects
Commit 7795dd06 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

Doh... forgot to notify waiting threads when entry becomes valid

parent 97331faf
No related branches found
No related tags found
No related merge requests found
......@@ -84,12 +84,14 @@ public class WeakRefVolatileCache< K, V extends VolatileCacheValue > implements
ref = new CacheWeakReference( value, this );
}
// Precondition: caller must hold lock on this.
public void setValid( final V value )
{
loaded = VALID;
ref = new CacheWeakReference( value, this );
loader = null;
enqueueFrame = Long.MAX_VALUE;
notifyAll();
}
public void clean( final CacheWeakReference ref )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment