Ejemplo n.º 1
0
 internal void Free()
 {
     Config = null;
     if (isLoopObject)
     {
         objectIndexs.Clear();
     }
     else if (forefatherCount != 0)
     {
         System.Array.Clear(forefather, 0, forefatherCount);
         forefatherCount = 0;
     }
     YieldPool.Default.PushNotNull(this);
 }
Ejemplo n.º 2
0
        private void freeThread()
        {
            Config = null;
#if AutoCSer
            if (isLoopObject)
            {
                objectIndexs.Clear();
            }
            else
#endif
            if (forefatherCount != 0)
            {
                System.Array.Clear(forefather, 0, forefatherCount);
                forefatherCount = 0;
            }
        }