Beispiel #1
0
		public RewindThreader(Rewinder rewinder, bool isThreaded)
		{
			IsThreaded = isThreaded;
			_rewinder = rewinder;

			if (IsThreaded)
			{
				_ewh = new EventWaitHandle(false, EventResetMode.AutoReset);
				_ewh2 = new EventWaitHandle(false, EventResetMode.AutoReset);
				_thread = new Thread(ThreadProc) { IsBackground = true };
				_thread.Start();
			}
		}
Beispiel #2
0
        public RewindThreader(Rewinder rewinder, bool isThreaded)
        {
            IsThreaded = isThreaded;
            _rewinder  = rewinder;

            if (IsThreaded)
            {
                _ewh    = new EventWaitHandle(false, EventResetMode.AutoReset);
                _ewh2   = new EventWaitHandle(false, EventResetMode.AutoReset);
                _thread = new Thread(ThreadProc)
                {
                    IsBackground = true
                };
                _thread.Start();
            }
        }