mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
3c3f782e7d
// FREEBIE
20 lines
421 B
Objective-C
20 lines
421 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <CoreFoundation/CoreFoundation.h>
|
|
|
|
@interface PriorityQueue : NSObject {
|
|
@private
|
|
NSMutableArray *items;
|
|
}
|
|
|
|
@property (readonly, nonatomic, copy) NSComparator comparator;
|
|
|
|
+ (PriorityQueue *)priorityQueueAscendingWithComparator:(NSComparator)comparator;
|
|
- (void)enqueue:(id)item;
|
|
- (id)peek;
|
|
- (id)dequeue;
|
|
- (NSUInteger)count;
|
|
@end
|