コード例 #1
0
 internal WriterLock(FastReaderWriterLock lockObj)
 {
     _lockObj = lockObj;
     _lockObj.AcquireWriterLock();
 }
コード例 #2
0
ファイル: RtmpContext.cs プロジェクト: apakian/fluorinefx
        /// <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;
		}
コード例 #3
0
 internal WriteLockable(FastReaderWriterLock lockObj)
 {
     _lockObj = lockObj;
 }
コード例 #4
0
ファイル: RtmptConnection.cs プロジェクト: Boreeas/LoLNotes
 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);
 }