public CaptureThread( ExtendedManualResetEvent ShutdownFlag, IThreadBase MasterThread) : base(ShutdownFlag) { this.InputQueue = new ConcurrentMessageQueue(); this.MasterThread = MasterThread; }
public PrinterThread( ExtendedManualResetEvent ShutdownFlag, ExtendedManualResetEvent ConnectionFailedEvent) : base(ShutdownFlag) { this.ContentOdom = new ConcurrentOdom(); this.InputQueue = new ConcurrentMessageQueue(); this.ConnectionFailedEvent = ConnectionFailedEvent; }
public ThreadBase(ExtendedManualResetEvent ShutdownFlag) { this.ShutdownFlag = ShutdownFlag; // the thread ended event starts off as on. Not until it is running is the // ended event set off. this.ThreadEndedEvent = new ExtendedManualResetEvent(true); }
public ThreadSupervisor( ExtendedManualResetEvent InBackThreadEndFlag, RunLogListBox InRunLog) { mRunLog = new RunLogListBox(InRunLog, "Supervisor"); mBackThreadEndFlag = InBackThreadEndFlag; mCurrentReadBuffer = null; mDisplacedBufferList = new List <ReadBuffer>(); mCommandThreadList = new List <CommandThread>(); }
public ToThread( ExtendedManualResetEvent ShutdownFlag, TcpClient Client, ScreenDim ScreenDim) : base(ShutdownFlag) { this.Client = Client; this.InputQueue = new ConcurrentMessageQueue(); this.ConnectionFailedEvent = new AutoResetEvent(false); this.LogList = new TelnetLogList("To"); }
public PaintThread( ExtendedManualResetEvent ShutdownFlag, Window Window, ItemCanvas TelnetCanvas) : base(ShutdownFlag) { this.InputQueue = new ConcurrentMessageQueue(); this.Window = Window; this.TelnetCanvas = TelnetCanvas; this.LogList = new TelnetLogList("Paint"); }
public ConnectThread( ExtendedManualResetEvent ShutdownFlag, FromThread FromThread, ToThread ToThread, SessionSettings Settings) : base(ShutdownFlag) { this.FromThread = FromThread; this.ToThread = ToThread; this.SessionSettings = Settings; this.InputQueue = new ConcurrentMessageQueue(); }
public MatchThread( ExtendedManualResetEvent ShutdownFlag, IThreadBase MasterThread, IThreadBase PaintThread, Action <ThreadMessageBase> TelnetWindowInputSignal) : base(ShutdownFlag) { this.InputQueue = new ConcurrentMessageQueue(); this.MasterThread = MasterThread; this.PaintThread = PaintThread; this.TelnetWindowInputSignal = TelnetWindowInputSignal; }
public CommandThread( ThreadSupervisor InSupervisor, TelnetConnection InConn, TelnetCommandRoute InCommandRoute, RunLogListBox InRunLog) { mShutdownFlag = new ExtendedManualResetEvent(false); mConn = InConn; mCommandRoute = InCommandRoute; mRunLog = InRunLog; Supervisor = InSupervisor; }
public MasterThread( ExtendedManualResetEvent ShutdownFlag, ExtendedManualResetEvent ConnectionFailedEvent, ScreenDim ScreenDim, ItemCanvas TelnetCanvas) : base(ShutdownFlag) { this.ContentOdom = new ConcurrentOdom(); this.InputQueue = new ConcurrentMessageQueue(); this.ConnectionFailedEvent = ConnectionFailedEvent; this.ScreenDim = ScreenDim; this.TelnetCanvas = TelnetCanvas; this.LogList = new TelnetLogList("Master"); }
public FromThread( ExtendedManualResetEvent ShutdownFlag, TcpClient Client, ConcurrentMessageQueue TelnetQueue, SessionSettings Settings, ScreenDim ScreenDim) : base(ShutdownFlag) { this.Client = Client; this.InputQueue = new ConcurrentMessageQueue(); this.TelnetQueue = TelnetQueue; this.ConnectionFailedEvent = new ExtendedManualResetEvent(false); this.SessionSettings = Settings; this.LogList = new TelnetLogList("From"); }
public ReceiveThread( TelnetConnection InConn, AutoResetEvent InStartReceivingEvent, ThreadSupervisor InSupervisor, ExtendedManualResetEvent InShutdownFlag, RunLogListBox InRunLog) { mConn = InConn; mSupervisor = InSupervisor; mSupervisor.AssignRunningReceiveThread(this); mStartReceivingEvent = InStartReceivingEvent; mRunLog = new RunLogListBox(InRunLog, "ReceiveThread"); mShutdownFlag = InShutdownFlag; }
// ---------------------- StartReceiveFromTelnetServerThread ---------------------- public static void StartReceiveFromTelnetServerThread( // out DataQueue OutReceiveDataQueue, out AutoResetEvent OutStartReceivingEvent, TelnetConnection InConn, ThreadSupervisor InSupervisor, ExtendedManualResetEvent InShutdownFlag, RunLogListBox InRunLog) { // create the event that the receive thread listens to to be signaled that it // should wake up and receive from the telnet server. OutStartReceivingEvent = new AutoResetEvent(false); // setup the ReceiveThread object with all the object references it needs. ReceiveThread rt = new ReceiveThread( InConn, OutStartReceivingEvent, InSupervisor, InShutdownFlag, InRunLog); // start the ReceiveThread. ReceiveThread.ThreadStart(rt); }
public ReadBuffer() { mGotDataEvent = new ExtendedManualResetEvent(false); }
public BackThread( ExtendedManualResetEvent ShutdownFlag) { this.ShutdownFlag = ShutdownFlag; }