Example #1
0
 public void Release(IRef reference)
 {
     reference.Clear();
     lock (m_RefQueue) {
         if (m_RefQueue.Contains(reference))
         {
             throw new FrameworkException("The reference has been released.");
         }
         m_RefQueue.Enqueue(reference);
     }
     m_UsingRefCount--;
     m_ReleaseRefCount++;
 }