A class that allows threads to determine who, if anyone, has the lock on an object.
Esempio n. 1
0
 /// <summary>
 /// Acquires the lock on the SafeLock object.
 /// </summary>
 public Lock(SafeLock safeLock)
 {
     m_safeLock = safeLock;
     m_safeLock.Enter();
 }
Esempio n. 2
0
 /// <summary>
 /// Acquires the lock on the SafeLock object.
 /// </summary>
 public Lock(SafeLock safeLock)
 {
     m_safeLock = safeLock;
     m_safeLock.Enter();
 }