Example #1
0
        private bool _timerThreadExit;           // A flag that tells the receive thread to exit

        public RoutingTable(IRoutingTableCallbacks routing)
        {
            _lock        = new object();
            _routing     = routing;
            _table       = new ArrayList();
            _timerThread = new Thread(TimerThread);
#if !MICROFRAMEWORK
            _timerThread.IsBackground = true;
#endif
            _timerEvent      = new AutoResetEvent(false);
            _timerThreadExit = false;
            _timerThread.Start();
        }
Example #2
0
        private bool _timerThreadExit;        // A flag that tells the receive thread to exit

        public RoutingTable(IRoutingTableCallbacks routing)
        {
            _lock = new object();
            _routing = routing;
            _table = new ArrayList();
            _timerThread = new Thread(TimerThread);
#if !MICROFRAMEWORK
            _timerThread.IsBackground = true;
#endif
            _timerEvent = new AutoResetEvent(false);
            _timerThreadExit = false;
            _timerThread.Start();
        }