Exemplo n.º 1
0
 public static void release()
 {
     if (--refCount <= 0)
     {
         instance.destroy();
         instance = null;
     }
 }
Exemplo n.º 2
0
 public static ItemImageBuilder acquire()
 {
     if (instance == null)
     {
         instance = new ItemImageBuilder();
     }
     refCount++;
     return(instance);
 }