Пример #1
0
        public override bool Start()
        {
            if (Started || _packetStream == null)
            {
                return(false);
            }

            // Start paused up to the first frame.
            _paused      = true;
            _targetFrame = 1;
            _quitFlag    = false;
            Eos          = false;
            // _thread = new System.Threading.Thread(this.Run);
            _thread = new Workthread(Run(), this.QuitThread, this.OnStop);
            _thread.Start();
            return(true);
        }
Пример #2
0
        public override bool Start()
        {
            if (Started)
            {
                return(false);
            }

            if (!_connection.IsValid)
            {
                return(false);
            }

            _quitFlag = false;
            Status    = NetworkThreadStatus.Started;
            _thread   = new Workthread(Run(), this.OnQuit);
            _thread.Start();
            return(true);
        }