예제 #1
0
        protected override void OnDispose()
        {
            m_Abort = true;

            if (m_ReaderThread != null && m_ReaderThread.IsAlive)
            {
                m_ReaderThread.Join();
            }

            m_Indexes = null;
        }
예제 #2
0
        internal LogFileParser(string filename, char separator, bool monitorFile, LogIndexCollection indexes, HashSet <string> filteredItems)
        {
            Filename      = filename;
            m_Separator   = separator;
            m_MonitorFile = monitorFile;

            m_Indexes = indexes;

            m_FilteredItems = filteredItems;

            ReadItemReplacements();
        }
예제 #3
0
        internal QueuedRequestManager(long databaseInstanceID, LogIndexCollection indexes, string filename)
        {
            m_DatabaseInstanceID = databaseInstanceID;
            m_Indexes            = indexes;
            m_Filename           = filename;


            //m_QueuedReadThreadQuitEvent = new ManualResetEvent(false);
            Trace.TraceInformation("QueuedReadThread created: {0}", m_DatabaseInstanceID);
            m_QueuedReadThread = new Thread(new ThreadStart(OnQueuedReadThreadExecute))
            {
                Name = "Queued Request Manager"
            };
            m_QueuedReadThread.Start();
        }