/// <summary> /// Sincroniza a fila. /// </summary> /// <param name="queue"></param> /// <returns></returns> public static BinaryPriorityQueue Syncronized(BinaryPriorityQueue queue) { return(new BinaryPriorityQueue(ArrayList.Synchronized(queue._innerList), queue._comparer, false)); }
/// <summary> /// Recupera um cópid de somente leitura. /// </summary> /// <param name="queue"></param> /// <returns></returns> public static BinaryPriorityQueue ReadOnly(BinaryPriorityQueue queue) { return(new BinaryPriorityQueue(ArrayList.ReadOnly(queue._innerList), queue._comparer, false)); }