Example #1
0
 public void ChunkObjSTPoolInit(int capacity = Constants.wantToShowNumOfChunks + 2)
 {
     for (int i = 0; i < capacity; i++)
     {
         ChunkObjST temp = new ChunkObjST();
         temp.Reset();
         chunkObjSTPool.Add(temp);
     }
 }
Example #2
0
 public void TurnInChunkObjSTPool(ChunkObjST temp)
 {
     if (!temp.IsEmpty())
     {
         temp.Reset();
     }
     if (chunkObjSTList.Remove(temp))
     {
         chunkObjSTPool.Add(temp);
     }
     else
     {
         ErrorManager.SpurtError("청크 풀에 반납시 문제001");
     }
 }