Beispiel #1
0
 /// <summary>
 /// This object lock system mutex , The default timeout locking : 20 seconds
 /// </summary>
 public AutoMutexLock(NamedMutex oMutex)
 {
     m_Mutex = oMutex;
     DoMutexLocking(MUTEX_TIMEOUT);
 }
Beispiel #2
0
 /// <summary>
 /// This object lock system mutex
 /// </summary>
 /// <param name="nLockTimeOut">The time out in milliseconds to try the locking</param>
 public AutoMutexLock(NamedMutex oMutex, int nLockTimeOut)
 {
     m_Mutex = oMutex;
     DoMutexLocking(nLockTimeOut);
 }