2021-01-11 08:54:28 +08:00
|
|
|
/************************************************/
|
|
|
|
|
/* */
|
|
|
|
|
/* Copyright (c) 2018 - 2021 monitor1394 */
|
|
|
|
|
/* https://github.com/monitor1394 */
|
|
|
|
|
/* */
|
|
|
|
|
/************************************************/
|
2019-08-15 21:44:30 +08:00
|
|
|
|
|
|
|
|
namespace XCharts
|
|
|
|
|
{
|
2019-11-02 08:24:37 +08:00
|
|
|
internal static class XAxisPool
|
2019-08-15 21:44:30 +08:00
|
|
|
{
|
|
|
|
|
private static readonly ObjectPool<XAxis> s_ListPool = new ObjectPool<XAxis>(null, null);
|
|
|
|
|
|
|
|
|
|
public static XAxis Get()
|
|
|
|
|
{
|
|
|
|
|
return s_ListPool.Get();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void Release(XAxis toRelease)
|
|
|
|
|
{
|
|
|
|
|
s_ListPool.Release(toRelease);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-02 08:24:37 +08:00
|
|
|
internal static class YAxisPool
|
2019-08-15 21:44:30 +08:00
|
|
|
{
|
|
|
|
|
private static readonly ObjectPool<YAxis> s_ListPool = new ObjectPool<YAxis>(null, null);
|
|
|
|
|
|
|
|
|
|
public static YAxis Get()
|
|
|
|
|
{
|
|
|
|
|
return s_ListPool.Get();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void Release(YAxis toRelease)
|
|
|
|
|
{
|
|
|
|
|
s_ListPool.Release(toRelease);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|