mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-29 06:18:06 +02:00
* editorconfig: Add default charset * Change file encoding from UTF-8-BOM to UTF-8
18 lines
409 B
C#
18 lines
409 B
C#
namespace Ryujinx.Common
|
|
{
|
|
public static class SharedPools
|
|
{
|
|
private static class DefaultPool<T>
|
|
where T : class, new()
|
|
{
|
|
public static readonly ObjectPool<T> Instance = new(() => new T(), 20);
|
|
}
|
|
|
|
public static ObjectPool<T> Default<T>()
|
|
where T : class, new()
|
|
{
|
|
return DefaultPool<T>.Instance;
|
|
}
|
|
}
|
|
}
|