Ejemplo n.º 1
0
 private MonitorLock(LockObject lockObject)
 {
     m_lockObject = lockObject;
     Monitor.Enter(m_lockObject);
     m_lockObject.IsLocked        = true;
     m_lockObject.ManagedThreadId = Thread.CurrentThread.ManagedThreadId;
     m_lockObject.ThreadName      = Thread.CurrentThread.Name;
 }
Ejemplo n.º 2
0
 public static MonitorLock CreateLock(LockObject lockObject)
 {
     return(new MonitorLock(lockObject));
 }