public PlayerEventThread(Client ownerClient) { playerThread = new Thread(new ThreadStart(ProcessQueuedEvents)); resetEvent = new ManualResetEvent(false); eventQueue = new PlayerEventQueue(); this.ownerClient = ownerClient; playerThread.IsBackground = true; playerThread.Start(); }
public PlayerEventThread(Client ownerClient) { playerThread = new Thread(new ThreadStart(ProcessQueuedEvents)); resetEvent = new ManualResetEvent(false); eventQueue = new PlayerEventQueue(); this.ownerClient = ownerClient; playerThread.IsBackground = true; playerThread.Start(); }