mirror of https://github.com/v2ray/v2ray-core
doc
parent
6bb53251e9
commit
3942679371
|
@ -39,6 +39,7 @@ func (queue *timedQueueImpl) Pop() interface{} {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TimedQueue is a priority queue that entries with oldest timestamp get removed first.
|
||||||
type TimedQueue struct {
|
type TimedQueue struct {
|
||||||
queue timedQueueImpl
|
queue timedQueueImpl
|
||||||
access sync.RWMutex
|
access sync.RWMutex
|
||||||
|
|
Loading…
Reference in New Issue