Lines Matching refs:queue
10 var m_p1Queue = []; // Priority 1 queue. These can only be bumped by other p1 pages.
122 function _pushToFront(id, queue) {
123 var idx = queue.indexOf(id);
125 queue.splice(idx, 1);
126 queue.push(id);
129 function _addPage(id, queue, hash, data, maxSize, exclude) {
131 _pushToFront(id, queue);
133 if (queue.length > maxSize) {
135 for (var x=0; x<queue.length; x++) {
136 if (!exclude[queue[x]]) {
137 delete hash[queue[x]];
138 queue.splice(x, 1);
143 delete hash[queue.shift()];
145 queue.push(id);