您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

25 行
617 B

using System.Collections.Generic;
namespace UnityEngine.Graphing
{
public static class QueuePool<T>
{
// Object pool to avoid allocations.
static readonly ObjectPool<Queue<T>> k_QueuePool = new ObjectPool<Queue<T>>(null, l => l.Clear());
public static Queue<T> Get()
{
return k_QueuePool.Get();
}
public static PooledObject<Queue<T>> GetDisposable()
{
return k_QueuePool.GetDisposable();
}
public static void Release(Queue<T> toRelease)
{
k_QueuePool.Release(toRelease);
}
}
}