Move solution and projects to src
This commit is contained in:
17
src/Ryujinx.Common/Pools/SharedPools.cs
Normal file
17
src/Ryujinx.Common/Pools/SharedPools.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace Ryujinx.Common
|
||||
{
|
||||
public static class SharedPools
|
||||
{
|
||||
private static class DefaultPool<T>
|
||||
where T : class, new()
|
||||
{
|
||||
public static readonly ObjectPool<T> Instance = new ObjectPool<T>(() => new T(), 20);
|
||||
}
|
||||
|
||||
public static ObjectPool<T> Default<T>()
|
||||
where T : class, new()
|
||||
{
|
||||
return DefaultPool<T>.Instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user