Branch: Tag:

2017-04-03

2017-04-03 12:17:23 by Anders Johansson <anders@roxen.com>

RAM Cache: No need for low_pop workaround

We now use Pike 8.

901:    {    Thread.MutexKey key = priority_mux->lock();    while ((size > max_size) && sizeof(priority_queue)) { -  // NB: Use low_peek() + remove() since low_pop() doesn't exist. -  HeapElement element = priority_queue->low_peek(); +  HeapElement element = priority_queue->low_pop();    if (!element) break; -  priority_queue->remove(element); +        CacheEntry entry = element->cache_entry();