Example #1
0
 public void ReleaseLock()
 {
     lock (this)
     {
         m_lockLevel--;
         if (m_lockLevel == 0)
         {
             m_lockingModel.ReleaseLock();
             m_realStream = null;
         }
     }
 }
Example #2
0
 public void ReleaseLock()
 {
     lock (this) {
         m_lockLevel--;
         if (m_lockLevel == 0)
         {
             // If already unlocked, nop
             m_lockingModel.ReleaseLock();
             m_realStream = null;
         }
     }
 }