Exemple #1
0
func New_LFU(size int64) *LFUQueue {
	q := link.New_Link()
	return &LFUQueue{
		maxSize: size,
		queue:   q,
	}
}
Exemple #2
0
func New_FIFO(size int64) *FIFOQueue {
	q := link.New_Link()
	return &FIFOQueue{
		maxSize: size,
		queue:   q,
	}
}