Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }