EventPriorityQueue implementation