Beispiel #1
0
        public void MoveToMessageSlot(int messageSlotIndex, bool lockOnMove)
        {
            if (_readWriteContext != null)
                _readWriteContext.Dispose();

            _readWriteContext = _dataBlockGroup.CreateBlockReadWriteContext(messageSlotIndex, lockOnMove);
            CurrentSlotIndex = messageSlotIndex;
        }
        public MemoryMappedReadWriteDisposableLock(MemoryMappedReadWriteContext readWriteContext)
        {
            _readWriteContext = readWriteContext;

            _readWriteContext.Lock();
        }