private void RestoreState() { CrestronLogger.DebugLevel = savedDebugLevel; CrestronLogger.LogOnlyCurrentDebugLevel = savedLogOnlyThisLevel; CrestronLogger.Mode = savedLoggerMode; CMonitor.Exit(lockObject); }
public void Exit() { try { CMonitor.Exit(mutex); } catch { } }
internal byte IncrementSequenceNumber() { byte bret; CMonitor.Enter(_txsequenceNumberLock); bret = _txsequenceNumber++; CMonitor.Exit(_txsequenceNumberLock); return(bret); }
private SocketErrorCodes SendDatagram(byte[] data, int len) { if (client == null) { return(SocketErrorCodes.SOCKET_NOT_CONNECTED); } CMonitor.Enter(_sendDatagramLock); SocketErrorCodes sret = client.SendData(data, len, remoteEndpoint); CMonitor.Exit(_sendDatagramLock); if (sret != SocketErrorCodes.SOCKET_OK) { ErrorLog.Error("SendDatagram: {0}", sret.ToString()); } return(sret); }
internal void ResetSequenceNumber() { CMonitor.Enter(_txsequenceNumberLock); _txsequenceNumber = 0x00; CMonitor.Exit(_txsequenceNumberLock); }
internal void DecrementSingleSequenceNumber() { CMonitor.Enter(_txsequenceNumberLock); _txsequenceNumber--; CMonitor.Exit(_txsequenceNumberLock); }
public void Exit() { CMonitor.Exit(mutex); }
/// <summary> /// Manually release the lock. /// (Note: This is done automatically when the LockToken is disposed) /// </summary> public void ReleaseLock() { CMonitor.Exit(_monitorObject); }