コード例 #1
0
        private LogBuffers LogBuffers(long registrationId, string logFileName, String channel)
        {
            LogBuffers logBuffers = _logBuffersByIdMap[registrationId];

            if (null == logBuffers)
            {
                logBuffers = _logBuffersFactory.Map(logFileName);
                _logBuffersByIdMap[registrationId] = logBuffers;

                if (_ctx.PreTouchMappedMemory() && !channel.Contains("sparse=true"))
                {
                    logBuffers.PreTouch();
                }
            }

            logBuffers.IncRef();

            return(logBuffers);
        }
コード例 #2
0
ファイル: ClientConductor.cs プロジェクト: yazici/Aeron.NET
        private LogBuffers LogBuffers(long registrationId, string logFileName)
        {
            LogBuffers logBuffers = _logBuffersByIdMap[registrationId];

            if (null == logBuffers)
            {
                logBuffers = _logBuffersFactory.Map(logFileName);
                _logBuffersByIdMap[registrationId] = logBuffers;

                if (_ctx.PreTouchMappedMemory())
                {
                    logBuffers.PreTouch();
                }
            }

            logBuffers.IncRef();

            return(logBuffers);
        }