internal WriterLock(FastReaderWriterLock lockObj) { _lockObj = lockObj; _lockObj.AcquireWriterLock(); }
/// <summary> /// Initializes a new instance of the RtmpContext class. /// </summary> /// <param name="mode"></param> public RtmpContext(RtmpMode mode) { //_mode = mode; _readerWriterLock = new FastReaderWriterLock(); SetMode(mode); _objectEncoding = ObjectEncoding.AMF0; }
internal WriteLockable(FastReaderWriterLock lockObj) { _lockObj = lockObj; }
public RtmptConnection(RtmptServer rtmptServer, IPEndPoint ipEndPoint, string path, Hashtable parameters) : base(rtmptServer.RtmpHandler, RtmpMode.Server, path, parameters) { _lock = new FastReaderWriterLock(); _remoteEndPoint = ipEndPoint; _rtmptServer = rtmptServer; _readBytes = new AtomicLong(); _writtenBytes = new AtomicLong(); _session = rtmptServer.Endpoint.GetMessageBroker().SessionManager.CreateSession(this); }