Enter() public method

Acquires the lock.
Thrown if the lock state is inconsistent.
public Enter ( ) : void
return void
Example #1
0
 /// <summary>
 /// Acquires the lock on the SafeLock object.
 /// </summary>
 public Lock(SafeLock safeLock)
 {
     m_safeLock = safeLock;
     m_safeLock.Enter();
 }
Example #2
0
 /// <summary>
 /// Acquires the lock on the SafeLock object.
 /// </summary>
 public Lock(SafeLock safeLock)
 {
     m_safeLock = safeLock;
     m_safeLock.Enter();
 }